Page 1 of 1

Option to skip file based on resulting filesize

Posted: Mon May 04, 2020 7:21 am
by pilecarls8
I have over 100,000 images distributed across thousands of subfolders (jpg, png) that I want to convert as a batch to webP. The end result being an identical filename with the webp extension in the same folder as the original file (ie image.png and image.webp end up beside each other).

All this seems possible with XnConvert. However the only reason I want to do this is to reduce filesize.

During a batch conversion, I only want the images where the image.webp filesize ends up being smaller than the original image.jpg to be saved. If it's not smaller, I want it skipped. Is there a way to do this?

Re: Option to skip file based on resulting filesize

Posted: Tue May 05, 2020 8:03 am
by cday
pilecarls8 wrote:
Mon May 04, 2020 7:21 am
During a batch conversion, I only want the images where the image.webp filesize ends up being smaller than the original image.jpg to be saved. If it's not smaller, I want it skipped. Is there a way to do this?

Not currently supported... :(

There have been a number of recent requests for this or similar functionality, so maybe Pierre will be able to add some kind of 'conditional conversion' option soon.

An option to only convert files if the new file will be smaller was recently added to the NConvert command line tool, if that might provide a solution for you.