CMYK PDF does not retain original colors

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
reptilee
Posts: 1
Joined: 2016-02-01T03:01:21-07:00
Authentication code: 1151

CMYK PDF does not retain original colors

Post by reptilee »

We are having difficulties getting imagick to return a composited CMYK pdf with the same colors.

The issue has been described it here: viewtopic.php?f=1&t=29064
patrick.h wrote:Hi,

I've been having a bit of difficulty getting imagick to return a composited CMYK pdf with the same colors. Out of curiosity, I tried the simplest ImageMagick command that I know of: open convert and close, and the colors are still different. :(

Code: Select all

convert -density 300 before.pdf after.pdf  
before and after pdfs are found here:
https://www.dropbox.com/sh/z6jg2e12zplc ... -1mha?dl=0

before.pdf pdf version is 1.3 (from Adobe Illustrator)
ImageMagick 6.9.2-5 Q16 x86_64 2015-11-09
Ghostscript 9.10 (2013-08-30)

the expected color of the line is #221E1F,
the resulting color is #090707.
At least white is ok :).

Any advice on how to proceed will be greatly appreciated.

PS: What i'm trying to achieve is to get the color of the line to be #000000, from a cmyk pdf to a cmyk jpeg / tiff. It's something I can achieve with Illustrator, but for some reason, I can't with imagick.
Any help on this would be appreciated.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: CMYK PDF does not retain original colors

Post by fmw42 »

Is your issue with Imagick or Imagemagick. They are two different things. If you are using the command above, the issue is Imagemagick.

Note to Developers: I have tried using the command line to convert his file with and without conversion to sRGB and using profiles and I cannot get a close enough conversion using IM 6.9.3.2 Q16 Mac OSX. GS 9.16. See my comments in the linked post.
patrick.h
Posts: 4
Joined: 2016-01-27T20:45:07-07:00
Authentication code: 1151

Re: CMYK PDF does not retain original colors

Post by patrick.h »

Just a follow-up on Reptilee's post: we were experiencing issues with Imagick, so we tested the code in Imagemagick to locate the problem and found that problem lies with imagemagick. Updating Ghostscript to 9.15 has not solved the issue. Is there an alternative program to Imagemagick that might work for us?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: CMYK PDF does not retain original colors

Post by snibgo »

... and found that problem lies with imagemagick.
Unless you describe what the problem is, suggesting a solution is difficult.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: CMYK PDF does not retain original colors

Post by dlemstra »

I have GS 9.18 and I cannot reproduce the issue on Windows.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply