xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mandar Nimbkar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (XGC-102) Problem in rendering PNG images with ImageLoaderRawPNG in XMLGraphics 2.0.1 and FOP2.0
Date Tue, 10 Nov 2015 09:21:11 GMT

    [ https://issues.apache.org/jira/browse/XGC-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998293#comment-14998293
] 

Mandar Nimbkar commented on XGC-102:
------------------------------------

I debuged it a little:
It fails at org.apache.fop.render.pdf.ImageRawPNGAdapter at following line 
public void setup(PDFDocument doc) {
....
// read line by line; the first byte holds the filter
                while ((filter = dataStream.read()) != -1) 
...
}

So it is not able to read the RAW PNG image.

Interestingly there is not much change in the above code between FOP1.1 and FOP2.0.
However, it works with FOP1.1 but not with FOP2.0

> Problem in rendering PNG images with ImageLoaderRawPNG in XMLGraphics 2.0.1 and FOP2.0
> --------------------------------------------------------------------------------------
>
>                 Key: XGC-102
>                 URL: https://issues.apache.org/jira/browse/XGC-102
>             Project: XMLGraphicsCommons
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 2.0.1
>         Environment: FOP 2.0., PDF rendering of a PNG Image using ImageLoaderRawPNG
>            Reporter: Mandar Nimbkar
>              Labels: newbie
>             Fix For: 2.0.1
>
>         Attachments: Docs.zip
>
>
> I am migrating from FOP 1.0 to FOP 2.0
> I have made the required Java code changes as per the changed API.
> There are PNG images used in the report generated using PDF renderer..
> Initially with FOP 1.0, I tried ImageLoaderPNG. However, the resolution of the image
gets impacted. So I shifted to ImageLoaderRawPNG which rendered it properly.
> So this was working fine with FOP 1.0
> However, FOP 2.0 is not able to render the image with ImageLoaderRawPNG and throws exception..
> Attached the PNG image, exception and  the intermediate XSL-FO file (partial) generated
with ImageLoaderRawPNG.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message