Question

I've an entire tree with PNG images

I need to - open - assign sRGB profile - close

to every of them

(about 2000 images)

Is there a way to do this via gimp 2?

Was it helpful?

Solution

You could use imagemagick to do this. Example:

convert rgb_image.jpg +profile icm \
        -profile sRGB.icc  -profile USCoat.icm cmyk_image.jpg

mogrify is the standard command iirc. And here's an example doing a similar thing:

FOR /R %%a IN (*.jpg) DO mogrify -profile sRGB.icc "%%a"

Linux/bash recursive directory loop examples:

for f in $(find /tmp -name '*.png'); do mogrify $f ... ; done

(replace the ... with your mogrify command, $f is the file)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top