Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-134

Some PNGs are rendered incorrectly (Regression 2.7 -> 2.8)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.8
    • None
    • general
    • None
    • Java 17.0.5 (Adoptium Temurin) on Windows x64.

    Description

      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.

      Attachments

        1. broken.txt
          12 kB
          mt
        2. fixed.txt
          12 kB
          mt
        3. fop_broken.png
          4 kB
          mt
        4. xgc_2.7_correct-1.png
          0.8 kB
          mt
        5. xgc_2.8_wrong-1.png
          1 kB
          mt

        Activity

          People

            Unassigned Unassigned
            mus.svz@gmail.com mt
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: