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

crash on reading tiff image

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-alpha1
    • 1.0-alpha2
    • Format: TIFF
    • None

    Description

      I get an index out of bounds exception trying to load the attached image.

      java.lang.ArrayIndexOutOfBoundsException: Index 255 out of bounds for length 2
      	at org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreterPalette.interpretPixel(PhotometricInterpreterPalette.java:53)
      	at org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStrips.interpretStrip(DataReaderStrips.java:179)
      	at org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStrips.readImageData(DataReaderStrips.java:212)
      	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:659)
      	at org.apache.commons.imaging.formats.tiff.TiffDirectory.getTiffImage(TiffDirectory.java:163)
      	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:469)
      	at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1442)
      	at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1404)

       

      I'm calling getBufferedImage without any parameters.

      Attachments

        1. IMAGING-247.png
          30 kB
          Gary Lucas
        2. neutre.TIFF
          29 kB
          Robin Morier

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kinow Bruno P. Kinoshita
            rmo Robin Morier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment