commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Groß (JIRA) <j...@apache.org>
Subject [jira] [Commented] (IMAGING-97) Fails to read most Sony A100 JPG files generated from Photoshop CS2
Date Sun, 22 Feb 2015 21:02:11 GMT

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

Michael Groß commented on IMAGING-97:
-------------------------------------

Examined IMAGING-134 and found that this issue and IMAGING-134 have the same cause: A variable
called *b2* in *org.apache.commons.imaging.formats.jpeg.decoder.JpegInputStream.nextBit()*
has not the value 220 as expected but 208.

> Fails to read most Sony A100 JPG files generated from Photoshop CS2 
> --------------------------------------------------------------------
>
>                 Key: IMAGING-97
>                 URL: https://issues.apache.org/jira/browse/IMAGING-97
>             Project: Commons Imaging
>          Issue Type: New Feature
>          Components: Format: JPEG
>    Affects Versions: 1.0
>         Environment: Windows 7, JDK1.7, Imaging snapshot build from 20121013
>            Reporter: William Saar
>             Fix For: Patch Needed
>
>         Attachments: _DSC6099.jpg
>
>
> This line fails with the exception at the bottom for most of my old JPG files shot with
a Sony A100, and sometimes processed by Photoshop CS2. I will attach a failing file.
> BufferedImage img = Imaging.getBufferedImage(compressedThumbnailData, jpgDecodeParams);
> where jpgDecodeParams are
> ImagingConstants.BUFFERED_IMAGE_FACTORY, new RgbBufferedImageFactory()
> ImagingConstants.PARAM_KEY_FORMAT, ImageFormat.IMAGE_FORMAT_JPEG
> Exception:
> org.apache.commons.imaging.ImageReadException: Invalid marker found in entropy data
> 	at org.apache.commons.imaging.formats.jpeg.decoder.JpegInputStream.nextBit(JpegInputStream.java:50)
> 	at org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.decode(JpegDecoder.java:417)
> 	at org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.readMCU(JpegDecoder.java:311)
> 	at org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.visitSOS(JpegDecoder.java:122)
> 	at org.apache.commons.imaging.formats.jpeg.JpegUtils.traverseJFIF(JpegUtils.java:83)
> 	at org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.decode(JpegDecoder.java:428)
> 	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getBufferedImage(JpegImageParser.java:95)
> 	at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1375)
> 	at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1315)
> 	at 



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

Mime
View raw message