You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xmlgraphics.apache.org by "Joshua Marquart (Jira)" <ji...@apache.org> on 2023/02/01 04:03:00 UTC

[jira] [Commented] (XGC-134) Some PNGs are rendered incorrectly (Regression 2.7 -> 2.8)

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

Joshua Marquart commented on XGC-134:
-------------------------------------

I have seen an issue similar to this with other image processing software and TIFF images.  The problem ended up being due to corrupt metadata in the source image.  PNG files also have metadata.

Extract the metadata from the original, invalid PNG, and extract the metadata from an altered, valid PNG and compare the values.

You note that changing the PNG and saving it creates a valid PNG.  Open the original invalid PNG in an image editor; do not alter the image, but simply save it as a separate file, also as a PNG.  Check if this new PNG works.  If it does, compare metadata.

> Some PNGs are rendered incorrectly (Regression 2.7 -> 2.8)
> ----------------------------------------------------------
>
>                 Key: XGC-134
>                 URL: https://issues.apache.org/jira/browse/XGC-134
>             Project: XMLGraphicsCommons
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 2.8
>         Environment: Java 17.0.5 (Adoptium Temurin) on Windows x64.
>            Reporter: mt
>            Priority: Critical
>         Attachments: xgc_2.7_correct-1.png, xgc_2.8_wrong-1.png
>
>
> After upgrading our application from FOP 2.7 to FOP 2.8 we noticed that some PNG files are not rendered correctly in the PDF. While I initially thought this was a problem in FOP, I can reproduce this with FOP 2.7 + XGC 2.8, so I guess it must be an issue in XGC 2.8 .
> Unfortunately I can't share the exact PNG file because it contains the logo of one our customers. When I try to modify the PNG in any way, I can't reproduce it anymore. I also couldn't find another PNG to reproduce this with.
> Basically the PNG is rendered 3 times horizontally and a black bar appears below the 3 images. I attached a comparison between XGC 2.7 and XGC 2.8 . These are (obviously modified) screenshots of the PDF generated by FOP.
> There were hardly any changes between XGC 2.7 and 2.8. Looks like this may be related to XGC-132 ?
> This is with Java 17.0.5 (Adoptium Temurin) on Windows x64.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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