commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Groß (JIRA) <>
Subject [jira] [Commented] (IMAGING-97) Fails to read most Sony A100 JPG files generated from Photoshop CS2
Date Tue, 24 Feb 2015 20:59:04 GMT


Michael Groß commented on IMAGING-97:

This problem is caused by RST markers fond among image data. They are legal there. Thanks
for the example, it was very helpful.

Added RST and DRI markers to a proposed patch. This patch also throws a exceptions with a
proper message if the entropy data (= encoded image data) contain RST markers so that everyone
knows whats going on.

According to this issue affects
images saved with Photoshop: File->Save As->jpeg.

> Fails to read most Sony A100 JPG files generated from Photoshop CS2 
> --------------------------------------------------------------------
>                 Key: IMAGING-97
>                 URL:
>             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(
> 	at org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.decode(
> 	at org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.readMCU(
> 	at org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.visitSOS(
> 	at org.apache.commons.imaging.formats.jpeg.JpegUtils.traverseJFIF(
> 	at org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.decode(
> 	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getBufferedImage(
> 	at org.apache.commons.imaging.Imaging.getBufferedImage(
> 	at org.apache.commons.imaging.Imaging.getBufferedImage(
> 	at 

This message was sent by Atlassian JIRA

View raw message