Page 1 of 1

Layered JPEG? Firefox / Konqueror problems

Posted: 2007-03-27T17:18:05-07:00
by Servo888
So I have about 1,000 PDF files that I've taken and converted to images. But a few of the files generated weird jpeg's, in this case it seems that the JPEG's are layered... In Konqueror I can only see some parts of the image, while in Firefox I can either see everything, or nothing at all. I have no clue how to fix this, as there are about 100 or so images like this. I've tried creating the JPEG's from the PDF's using the -flatten option, but that still produced the same results. If I open the image in gimp, and save it again, the image looks fine in everything. Any suggestions?

See the following image for a better explaination.
http://www.garkei.com/4td/broken.jpg

Thank you,
-S

Re: Layered JPEG? Firefox / Konqueror problems

Posted: 2007-03-27T17:29:40-07:00
by magick
You are probably creating CMYK JPEG images. To convert to RGB, add -colorspace RGB to your command line or add -profile (one each for the CMYK color profile and then again for the sRGB color profile).

Re: Layered JPEG? Firefox / Konqueror problems

Posted: 2007-03-27T19:47:38-07:00
by Servo888
Tried the pdf file to jpg with the -colorspace RGB option, and the output it just a blank white page. Hmm but I think we are on to something.

One thing that did work is converting the pdf to ps, then converting the ps to a jpeg... That increases the amount time needed to convert the file by 20 folds - but as a last resort it might work.