[magick-users] ICC color space conversions
Roger Howard
rogerhoward at rogerroger.org
Wed Feb 21 13:51:47 CST 2007
I've got a bunch of RGB images. We can assume they are all tagged with an
ICC profile, but that the color space (and thus the profile) in each image
may not be the same.
Using imagemagick convert, I need to generate Web-ready JPEGs for each.
This means applying a -resize, some -unsharp, and handling the colorspace
conversion from whatever each image's colorspace (ICC profile) is to a
standardized colorspace (sRGB).
I'm trying to understanding the -profile option in convert. I see many
examples where two -profile "someprofile.icc" options are specified in a
single convert command. I'm assuming this is to specify a *source* (first
profile) and *destination* (second profile) color space for the
conversion.
My question is this... if I use a (simplified for this example) command like:
convert /path/to/image.tif -profile "sRGB.icc" /path/to/output.jpg
Will convert automatically perform a conversion from *whatever* profile is
embedded in a given image to the specified profile? Or do I need to first
extract the embedded profile, and then use a command like:
convert /path/to/image.tif -profile "extracted.icc" -profile "sRGB.icc"
/path/to/output.jpg
Hope this makes sense.
Best,
Rh
More information about the Magick-users
mailing list