When to use -colorspace

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
djeyewater
Posts: 15
Joined: 2009-07-25T09:16:08-07:00
Authentication code: 8675309

When to use -colorspace

Post by djeyewater »

I need to convert images to sRGB, so I'm using convert with -profile. But I see there is also a -colorspace option. Should I use -colorspace sRGB as well as -profile /path/to/sRGB.icc?

Thanks

Dave
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: When to use -colorspace

Post by fmw42 »

I am no expert on profiles, but I don't think using them both at the same time is appropriate. see http://www.imagemagick.org/Usage/formats/#color_profile
djeyewater
Posts: 15
Joined: 2009-07-25T09:16:08-07:00
Authentication code: 8675309

Re: When to use -colorspace

Post by djeyewater »

fmw42 wrote:I am no expert on profiles, but I don't think using them both at the same time is appropriate. see http://www.imagemagick.org/Usage/formats/#color_profile
Thanks for the link, unfortunately there doesn't seem to be much info on whether you should -colorspace as well as -profile there, all it says about -colorspace (unless I missed something) is
http://www.imagemagick.org/Usage/formats/#color_profile wrote:RGB and CMYK are not colorspaces, they are color systems (which IM controls using the "-colorspace" operator).
Dave
JimKerr

Re: When to use -colorspace

Post by JimKerr »

Hi,

I want to use IM to convert random images to sRGB. With random images I mean that the images can have any random colorprofile or not a colorprofile at all.
Can anyone tell me what to do?
Post Reply