PDF to JPEG convertion altering colors

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
jorgep

PDF to JPEG convertion altering colors

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PDF to JPEG convertion altering colors

Post by magick »

Add -colorspace RGB before your input file name. If that fails, add -verbose and post the results here.
jorgep

Re: PDF to JPEG convertion altering colors

Post 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.
jorgep

Re: PDF to JPEG convertion altering colors

Post 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!
Post Reply