commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Saar (JIRA)" <>
Subject [jira] [Created] (IMAGING-97) Fails to read most Sony A100 JPG files generated from Photoshop CS2
Date Thu, 01 Nov 2012 23:54:13 GMT
William Saar created IMAGING-97:

             Summary: Fails to read most Sony A100 JPG files generated from Photoshop CS2

                 Key: IMAGING-97
             Project: Commons Imaging
          Issue Type: Bug
          Components: Format: JPEG
    Affects Versions: 1.0
         Environment: Windows 7, JDK1.7, Imaging snapshot build from 20121013
            Reporter: William Saar
         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()

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(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message