Wrong colorspace after conversion
Posted: 2013-01-18T07:31:20-07:00
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?
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?