-
Bug
-
Resolution: Fixed
-
Medium
-
4.0
-
4
-
Steps to create problematic image:
- On a Mac using OS X 10.5 or 10.6
- Use Preview to capture part of the screen (File > Grab)
- Save the image in GIF format.
- Attach the GIF image to a JIRA issue, then open that issue.
Problem:
- Thumbnail does not appear in image attachments
- ERRORS appear in logs:
2009-10-28 10:51:57,863 http-8080-Processor21 ERROR [core.util.thumbnail.Thumber] Unable to create thumbnail image for id 10000 javax.imageio.IIOException: Unexpected block type 0! at com.sun.imageio.plugins.gif.GIFImageReader.readMetadata(GIFImageReader.java:721) at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:954) 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:281) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:241) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:215) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:86) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:104) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnails(DefaultThumbnailManager.java:50)
2009-10-28 10:51:57,874 http-8080-Processor21 ERROR [webwork.util.ValueStack] METHOD: "attachment", exception: com.atlassian.jira.exception.AttachmentNotFoundException: null at com.atlassian.jira.issue.managers.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:85)
2009-10-28 10:51:57,882 http-8080-Processor21 ERROR [webwork.util.ValueStack] METHOD: "latestFile", exception: java.lang.NullPointerException at com.atlassian.jira.web.bean.LatestFileBean.isLatestFile(LatestFileBean.java:44)
(I attached a full log file for posterity)
I tested this against JIRA 3.13.5 and the issue does not occur - this is new in 4.0.
Using this method of doing screen grabs works if you save to JPEG instead of GIF.
- incorporates
-
JRASERVER-18128 Thumbnail is not generated for gif files when issue created by mail
- Closed
- is related to
-
JRASERVER-22011 Exception is thrown when trying to upload GIF file as Avatar
- Closed
- relates to
-
CONFSERVER-8718 JPEG image render doesnt support CMYK - black boxes after Jimage upload
- Closed
-
JRASERVER-15862 Thumbnail in JPEG breaks transparency used in PNG/GIF
- Closed
-
JRASERVER-20072 Attachment and thumbnail missing in issue when CMYK jpeg image attached.
- Closed
-
JRASERVER-20075 Activity Stream broken when CMYK JPEG is attached to an issue
- Gathering Impact
-
JRASERVER-20071 Provide CMYK JPEG support within JIRA
- Closed