ICCPROFILE Batch Command

Started by Gregbutcher5, December 11, 2023, 07:44:28 AM

Previous topic - Next topic

Gregbutcher5

I've been having great success using
exiftool (-ICC_Profile= originalImage.jpg -o fixedImage.jpg)
to fix images that Windows Photo Viewer struggles to open, but it's quite click intensive and requires renaming every file and then moving the fixed image file before starting a new operation.

Is there a command please that I could use with say 100 image files in the folder and have ExifTool apply the ICC_Profile correction to them all whilst retaining the original file name?

Phil Harvey

Try this:

exiftool -icc_profile= -o %d%f_fixed.%e -ext jpg DIR

This will output the fixed files with "_fixed" added to the file name.

And you can add -r to recurse into contained folders.

- 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 ($).

Gregbutcher5

Worked perfectly thanks Phil!!  ;D