Option to skip file based on resulting filesize

XnConvert Multi Platform - Windows, MacOSX, Linux
Post Reply
pilecarls8
Posts: 1
Joined: Mon May 04, 2020 7:11 am

Option to skip file based on resulting filesize

Post by pilecarls8 » Mon May 04, 2020 7:21 am

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?

cday
XnThusiast
Posts: 2406
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Option to skip file based on resulting filesize

Post by cday » Tue May 05, 2020 8:03 am

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.

Post Reply