DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40425>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40425


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From [EMAIL PROTECTED]  2006-09-10 11:43 -------
Looks like a bug in the PNG codec for JDK 1.4.2_11 then. It may be this bug
here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4826548

As a work-around on JDK 1.4.2, you can change org.apache.fop.image.ImageFactory.
Find the line:
        imt = new ImageMimeType("image/png");

...and change the block there to this:
        imt = new ImageMimeType("image/png");
        imageMimeTypes.put(imt.getMimeType(), imt);
        imt.addProvider(pngImage);
        imt.addProvider(imageIoImage);

This gives the internal PNG codec a higher priority over the ImageIO codec.

(In reply to comment #3)
> Right, running FOP with JDK 1.5 works :-) 
> 
> Building and running FOP using JDK 1.4.2_11 with the latest sources form the 
> SVN trunk, I get the following backtrace. The build proceeds, though, 
> resulting in a PDF document missing that image (which in fact is a black 
> square to simplify matters). 
> 
> 07.09.2006 10:10:09 org.apache.fop.image.ImageIOImage loadBitmap
> SCHWERWIEGEND: Error while loading image: 4
> java.lang.ArrayIndexOutOfBoundsException: 4
>         at 
>
com.sun.imageio.plugins.png.PNGImageReader.parse_PLTE_chunk(PNGImageReader.java:347)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to