You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Neuhaus, Stephan" <st...@myview.de> on 2002/06/20 18:05:56 UTC

Rendering of JPEG Images in PDF: Bugzilla Bug 7587

Hello, 

I guess that the random colors in the jpeg images result from not writing the first byte(s) to the output.

I had a look at org.apache.fop.image.JpegImage.java and found that changing line 128 to 

	iccStream.write(this.m_bitmaps, index+16, chunkSize - 18); 

seems to fix the problem (corrupted pictures).

Attached to this mail is a zip with a jpeg image and the strange looking pdf.
With the patch described above the PDF looks ok.

With kind regards

Stephan Neuhaus

--------------------------------------------------------------------------------
myview technologies GmbH & Co. KG
Lindberghring 1 ~ 33142 B�ren ~ Germany
www.myview.de mailto:stephan.neuhaus@myview.de
Fon: +49-2955-7433-34 Fax: +49-2955-7433-99
--------------------------------------------------------------------------------
The information transmitted is only intended for the person or entity to which it is adressed. It may contain confidential and/or privileged material. Any review, forwarding, distribution or any other action related to this information by persons or entities other than the intended addressee is prohibited. If you receive this by mistake, please contact the addresser and delete the material from any computer.