Wrong colorspace after conversion

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mamoabeng
Posts: 2
Joined: 2013-01-18T07:02:26-07:00
Authentication code: 6789

Wrong colorspace after conversion

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Wrong colorspace after conversion

Post 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.
snibgo's IM pages: im.snibgo.com
mamoabeng
Posts: 2
Joined: 2013-01-18T07:02:26-07:00
Authentication code: 6789

Re: Wrong colorspace after conversion

Post by mamoabeng »

That's what I thought.. Thanks for looking into this.
Post Reply