Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-97

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

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0-alpha1
    • Fix Version/s: Patch Needed
    • Component/s: Format: JPEG
    • Labels:
      None
    • Environment:

      Windows 7, JDK1.7, Imaging snapshot build from 20121013

      Description

      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

        Attachments

        1. _DSC6099.jpg
          115 kB
          William Hyun

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                william William Hyun
              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: