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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11301

most jpgs with icc profiles are rendered black in pdf

           Summary: most jpgs with icc profiles are rendered black in pdf
           Product: Fop
           Version: 0.20.3
          Platform: Other
               URL: http://home.earthlink.net/~rocketdoglv/bigTree.jpg
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: images
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Most JPEG images with ICC Profiles display correctly in FOP 0.20.2, but appear 
as black boxes in FOP 0.20.3 and 0.20.4.  This only occurs if the client 
(win2000, acrobat reader) is using 16 bit or higher color.  With 256 colors, 
the images appear correctly.  The url field above has an example.

Comments from Jeremias Maerki below:
------------------------------------
Probably. Support was added for JPEG images to be embedded directly into
PDF. Until then JPEGS were read into memory by Jimi and written to the
PDF as a normal bitmap equal to the way GIFs and PNGs are written (using
non-lossy ZLib compression). So probably, Jimi was able to open those
JPEG images but something goes wrong today with the JPEGs that are
directly embedded in a PDF.

As the whole image support stuff is rather hardcoded at the moment, you
might want to try to modify org.apache.fop.images.FopImageFactory and
org.apache.fop.images.analyser.ImageReaderFactory to comment out JPEG
support. That will restore the way JPEG images were handled back in
0.20.2. But you will get bigger PDFs.

This is of course a short-term work-around. We still need to find out
the real problem. Would you mind checking BugZilla, if there's already
an entry for this problem? If not, please open a new bug report and add
one or two of your problem-JPEGs as an attachment. This way we can fix
it eventually. No idea if I get to have a look at it, because I wanted
to work mostly on the redesign during the next few weeks. So takers are
welcome.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to