Page 1 of 1

PDF to JPEG convertion altering colors

Posted: 2008-09-16T07:57:10-07:00
by jorgep
Hi, we've run our web application which has been running for a couple of years now under Gentoo. The user usually uploads a PDF and we make a JPG file from that PDF.

Recently we switched to RedHat and installed ImageMagick 6.3.8 (I don't remember what was the version we were using before).

Now the jpg files are showing like opaque or the color is faded. We are using exactly the same Profile files, and the exact same commands to generate the JPG.

What could be the problem? Is the version the problem? Did something change in the way the colors are interpreted in newer or older versions of IM?

Highly appreciated any guide or something to point me in the right direction.
Thanks a lot for your help.

Re: PDF to JPEG convertion altering colors

Posted: 2008-09-16T08:38:54-07:00
by magick
Add -colorspace RGB before your input file name. If that fails, add -verbose and post the results here.

Re: PDF to JPEG convertion altering colors

Posted: 2008-09-16T12:09:42-07:00
by jorgep
Thanks a lot for your response magick. Unfortunately I can't test it on my computer since it's showing fine in my pc, the problem is in the production server, so it will take me some time to test it, since I want to see what's the specific command and the PDF files we are using. I will test it possibly tomorrow, and let you know the results.

I think I took a quick look at the code and we were including the '-colorspace RGB' option, but I will confirm that tomorrow.

Thanks for your help!

Talk to you soon.

Re: PDF to JPEG convertion altering colors

Posted: 2008-09-25T11:51:24-07:00
by jorgep
Hi all,

Sorry for the delayed response, I was getting different results with the -colorspace RGB in the front of the input file. Although the colors are not dull anymore, some colors are different, generally darker or too bright. This is the command that we are executing

convert -quality 100 -colorspace RGB -density 100 "/var/www/bs229/data/templates/pdfs/AZHMGRP_JL_01_Back_B___V10.pdf[0]" -quality 100 "/var/www/bs229/data/webimages/testing_4e0ed5817aa81c2edf224b62b1d84cb3.jpg"

So my question is if there is a way to get the colors from CMYK to RGB to match (not exactly the same, but similar enough)?

I'm almost sure this was working before, but we moved to RedHat and didn't write down the IM version that we were using before, so we installed the latest version.

2nd question: Is there a way to get the latest version existent at march 30th 2007?

Thanks for your help!! much appreciated!