• Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 2.10.2
    • None

      It seems that png files, which were edited with Adobe Firework by adding layers and objects aren't generated as Thumbnail anymore.
      An example is
      Bild 1.png
      which was created by editing
      Bild 1_orig.png , which is a simple Screenshop produced with Mac OS X 10.5

      Testcase

      This case was reproduced with other edited pngs as well.
      The Testcase is the Wiki-Markup

      !Bild 1_orig.png|thumbnail!
      !Bild 1_orig.png!
      !Bild 1.png|thumbnail!
      !Bild 1.png!
      

      The given PNGs Bild 1_orig.png and Bild 1.png are attachments of the page.

      Results

      In the preview, the output is

      and on the saved page, nothing is visible at all.

      The generated HTML-Code for this part is

      <p><a class="confluence-thumbnail-link 502x49" href="http://intra.grueneerde.com/download/attachments/5800001/Bild%201_orig.png"><img src="/download/thumbnails/5800001/Bild%201_orig.png" align="absmiddle" border="0"></a><br>
      <img src="/download/attachments/5800001/Bild%201_orig.png" align="absmiddle" border="0"><br>
      <a class="confluence-thumbnail-link 502x49" href="http://intra.grueneerde.com/download/attachments/5800001/Bild%201.png"><img src="/download/thumbnails/5800001/Bild%201.png" align="absmiddle" border="0"></a><br>
      <img src="/download/attachments/5800001/Bild%201.png" align="absmiddle" border="0"></p>
      

      Trying to access

      http://intra.grueneerde.com/download/thumbnails/5800001/Bild%201.png
      

      brings up the exception

      java.lang.RuntimeException: java.io.FileNotFoundException: Thumbnail file for attachment Bild 1.png is '/data/confluence/thumbnails/5800001/thumb_Bild 1.png'. But this file does not exist.
      

      For full error page see RuntimeException.html

      As I can see, thumbnailing this things at least works in this Jira-Version

        1. Bild 1_orig.png
          Bild 1_orig.png
          7 kB
        2. Bild 1.png
          Bild 1.png
          52 kB
        3. Bild 12.png
          Bild 12.png
          16 kB
        4. Bild 13.png
          Bild 13.png
          15 kB
        5. RuntimeException.html
          25 kB

            [CONFSERVER-15730] Thumbnail of PNG file is not created

            Hi All

            I'm unable to reproduce this issue in Confluence 5.4.2 using the details supplied in the description of this issue as such I'm going to close this one out as obsolete.

            Regards
            Steve Haffenden
            Confluence Bugmaster
            Atlassian

            Steve Haffenden (Inactive) added a comment - Hi All I'm unable to reproduce this issue in Confluence 5.4.2 using the details supplied in the description of this issue as such I'm going to close this one out as obsolete. Regards Steve Haffenden Confluence Bugmaster Atlassian

            Please see linked duplicate issues for more cases where this can occur.

            Denise Unterwurzacher [Atlassian] (Inactive) added a comment - Please see linked duplicate issues for more cases where this can occur.

            Also, this might be fixed by upgrading to Java 1.6 : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5098176 (similar but not identical report).

            I was able to successfully display this image with a thumbnail using Java 1.6.0_07 and Mac OS X 10.5.7.

            Regards,
            Andrew Lynch

            Andrew Lynch (Inactive) added a comment - Also, this might be fixed by upgrading to Java 1.6 : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5098176 (similar but not identical report). I was able to successfully display this image with a thumbnail using Java 1.6.0_07 and Mac OS X 10.5.7. Regards, Andrew Lynch

            Hi Christian,

            The reason this works in JIRA (for 3.13.4) is that they use an older version of our thumbnail generation library, which is able to handle this particular file.
            It's not necessarily better support, it just so happens to work with the file you provided.
            Incidentally a thumbnail for this file will not be supported in later versions of JIRA, after they move to a newer version of our library.

            It might be possible to make our image reading more robust so that it may have files with strange metadata such as the one you have provided are processed correctly.

            Regards,
            Andrew Lynch

            Andrew Lynch (Inactive) added a comment - Hi Christian, The reason this works in JIRA (for 3.13.4) is that they use an older version of our thumbnail generation library, which is able to handle this particular file. It's not necessarily better support, it just so happens to work with the file you provided. Incidentally a thumbnail for this file will not be supported in later versions of JIRA, after they move to a newer version of our library. It might be possible to make our image reading more robust so that it may have files with strange metadata such as the one you have provided are processed correctly. Regards, Andrew Lynch

            Christian Vorhauer added a comment - - edited

            Hi Andrew.

            I did a little search on google regarding "com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk". It seems this problem is known but I didn't find a proper solution (see http://markmail.org/message/ezle2exc7zsd2xcc).
            Maybe Fireworks PNGs doesn't follow the standards.

            But, as possible solution or just to provide a better image support in confluence I have to point out, that in this jira issue, the image is correctly thumbnailed http://jira.atlassian.com/secure/thumbnail/31722/31722_Bild+1.png.

            Christian Vorhauer added a comment - - edited Hi Andrew. I did a little search on google regarding "com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk". It seems this problem is known but I didn't find a proper solution (see http://markmail.org/message/ezle2exc7zsd2xcc ). Maybe Fireworks PNGs doesn't follow the standards. But, as possible solution or just to provide a better image support in confluence I have to point out, that in this jira issue, the image is correctly thumbnailed http://jira.atlassian.com/secure/thumbnail/31722/31722_Bild+1.png .

            Hi Christian,

            When reproducing this, I had the following exceptions in the logs :

            java.io.EOFException
            	at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:330)
            	at java.io.DataInputStream.readUTF(DataInputStream.java:565)
            	at javax.imageio.stream.ImageInputStreamImpl.readUTF(ImageInputStreamImpl.java:309)
            	at com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk(PNGImageReader.java:443)
            	at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:647)
            	at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1309)
            	at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1579)
            	at javax.imageio.ImageIO.read(ImageIO.java:1400)
            	at javax.imageio.ImageIO.read(ImageIO.java:1322)
            	at com.atlassian.core.util.thumbnail.Thumber.getImage(Thumber.java:270)
                   ...
            

            followed by

            2009-05-27 13:29:08,180 ERROR [http-8080-3] [core.util.thumbnail.Thumber] retrieveOrCreateThumbNail Unable to create thumbnail image for id 753665
             -- referer: http://localhost:8080/conf/display/ds/paul%27s+maw | url: /conf/download/thumbnails/622596/Bild%201.png | userName: admin
            javax.imageio.IIOException: Error reading PNG metadata
            	at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:690)
            	at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1309)
            	at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1579)
            	at javax.imageio.ImageIO.read(ImageIO.java:1400)
            	at javax.imageio.ImageIO.read(ImageIO.java:1322)
            	at com.atlassian.core.util.thumbnail.Thumber.getImage(Thumber.java:270)
            	at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:230)
                   ...
            

            I believe there may be a problem with the image metadata. This leads to the thumbnail not being created, and hence it cannot be displayed.

            Andrew Lynch (Inactive) added a comment - Hi Christian, When reproducing this, I had the following exceptions in the logs : java.io.EOFException at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:330) at java.io.DataInputStream.readUTF(DataInputStream.java:565) at javax.imageio.stream.ImageInputStreamImpl.readUTF(ImageInputStreamImpl.java:309) at com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk(PNGImageReader.java:443) at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:647) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1309) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1579) at javax.imageio.ImageIO.read(ImageIO.java:1400) at javax.imageio.ImageIO.read(ImageIO.java:1322) at com.atlassian.core.util.thumbnail.Thumber.getImage(Thumber.java:270) ... followed by 2009-05-27 13:29:08,180 ERROR [http-8080-3] [core.util.thumbnail.Thumber] retrieveOrCreateThumbNail Unable to create thumbnail image for id 753665 -- referer: http: //localhost:8080/conf/display/ds/paul%27s+maw | url: /conf/download/thumbnails/622596/Bild%201.png | userName: admin javax.imageio.IIOException: Error reading PNG metadata at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:690) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1309) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1579) at javax.imageio.ImageIO.read(ImageIO.java:1400) at javax.imageio.ImageIO.read(ImageIO.java:1322) at com.atlassian.core.util.thumbnail.Thumber.getImage(Thumber.java:270) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:230) ... I believe there may be a problem with the image metadata. This leads to the thumbnail not being created, and hence it cannot be displayed.

              shaffenden Steve Haffenden (Inactive)
              875aa5115682 Christian Vorhauer
              Affected customers:
              2 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: