GIMP 2: how to batch assign sRGB profile to a lot of images into various subfolder

StackOverflow https://stackoverflow.com/questions/12146640

  •  28-06-2021
  •  | 
  •  

سؤال

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?

هل كانت مفيدة؟

المحلول

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)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top