Feature: -progressNUM

Started by ceej, February 08, 2023, 02:29:18 PM

Previous topic - Next topic

ceej

A nit, but when processing hundreds/thousands of files, -progress puts out a lot of lines.
Allow setting "progress every X files"
Maybe -progressNUM where X = NUM
or -progress(1,2,3) where X =  10, 100, 1000

Phil Harvey

Interesting idea.  Possible.  I'll think about it.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

This turned out to be very tricky, but it will be implemented in version 12.57.

The complication is due to the fact that messages aren't printed for files that fail the -if condition (if used), so it can't just print every Nth progress message.  It should print only 1 message for every N files processed tested with -if condition, which is actually a bit tricky to implement because the -if preprocessor needs to get feedback from the back end processor (at least I couldn't think of a better way to do this).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

Version 12.57 is now available.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).