Code: Select all
-colorspace sRGB
Code: Select all
-profile "sRGB Color Space Profile.icm"
I was using following command in batch processing of images. Some of source images were in sRGB (and no profile was embedded in the image). Some of images were in AdobeRGB and profile was embedded.
Code: Select all
convert -colorspace sRGB $SRC $DEST
- If the image had no profile, no color conversion was done, expecting input in sRGB.
- If the input was in AdobeRGB, conversion to sRGB was performed.
It is wanted change or a regression compared to the previous behavior?
Note:
It seems that this works in a similar way than the command above:
Code: Select all
convert -profile /usr/share/color/icc/Adobe\ ICC\ Profiles/RGB\ Profiles/sRGB\ Color\ Space\ Profile.icm $SRC $DEST
convert: associate profile with image, a source and destination color profile required for transform `icc' @ profile.c/ProfileImage/812.
(Well, just in this case letting it without any conversion is exactly what I need.)
But this again does not work properly (too dark), with or without
embedded profile:
Code: Select all
convert -profile /usr/share/color/icc/Adobe\ ICC\ Profiles/RGB\ Profiles/sRGB\ Color\ Space\ Profile.icm -colorspace sRGB $SRC $DEST
2008-06-03 6.4.1-6 Cristy <quetzlzacatenango at image...>
* The -colorspace option is an operator, not a setting.