1551
Post New Requests Here / Re: Batch-edit images (remove frames)
« Last post by 4wd on November 29, 2015, 05:42 PM »XnView - Batch processing using Auto crop

Before:

After:

If you want to do it from the command line, you can use nconvert which is part of XnView, this is for a single folder:
This will recurse a whole directory tree:
nconvert is non-destructive by default, the original images will not be replaced, you'll end up with <name>_<number>.jpg in the same folder as the original.
Before:
After:
If you want to do it from the command line, you can use nconvert which is part of XnView, this is for a single folder:
Code: Text [Select]
- for /f "usebackq" %a in (`dir K:\ /b *.jpg`) do ("C:\Program Files (x86)\XnView\nconvert.exe" -autocrop 70 245 245 245 %a)
This will recurse a whole directory tree:
Code: Text [Select]
- for /r K:\ %a in (*.jpg) do ("C:\Program Files (x86)\XnView\nconvert.exe" -autocrop 70 245 245 245 %a)
nconvert is non-destructive by default, the original images will not be replaced, you'll end up with <name>_<number>.jpg in the same folder as the original.

Recent Posts
.
> to locate the *.tmp and *.exe etc. and delete them all.



