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