Page 1 of 1

Wrong colorspace after conversion

Posted: 2013-01-18T07:31:20-07:00
by mamoabeng
I am having trouble converting an image as described here:
http://www.imagemagick.org/Usage/formats/#color_profile

This is the command I execute:
convert -limit thread 1 <path>/1.tif[0] -profile <profile> -quality 60 -background white -flatten -resize 146x134\> -strip jpg:<path>/1.jpg

Using one profile (sRGB Color Space Profile.icm) produces a jpg with cmyk color space and sort of inverted colors whereas using another (AppleRGB.icc downloaded from Adobe) works as expected.

Here is some info identify gathered from the source image:

Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 2101x2400+0+0
Resolution: 400x400
Print size: 5.2525x6
Units: PixelsPerInch
Type: ColorSeparation
Base type: ColorSeparation
Endianess: MSB
Colorspace: CMYK
Depth: 8-bit
Channel depth:
cyan: 8-bit
magenta: 8-bit
yellow: 8-bit
black: 8-bit
...
Properties:
date:create: 2013-01-08T15:25:46+01:00
date:modify: 2013-01-08T10:06:12+01:00
dc:format: image/tiff
exif:PixelXDimension: 2101
exif:PixelYDimension: 2400
photoshop:ColorMode: 4
photoshop:ICCProfile: GRACol_7_340.icc
...


Am I missing something here or is this a bug?

Re: Wrong colorspace after conversion

Posted: 2013-01-18T08:20:44-07:00
by snibgo
Using different profiles will give different results. That is to be expected. If you get the correct results from AppleRGB.icc, then that's the one to use.

Re: Wrong colorspace after conversion

Posted: 2013-01-21T01:00:15-07:00
by mamoabeng
That's what I thought.. Thanks for looking into this.