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

TiffReader throws Can't find Rows per strip in case rows per strip is not present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.0-alpha1
    • Format: TIFF
    • Windows - 7 64 bit

    Description

      If a TIFF file doesnot contain a tag TIFF_TAG_ROWS_PER_STRIP then TIFFReader thwos an exception . So we don't get buffered image for that tiff .
      Fix is :- According to Tiff Specification if rows per strip is not present , then we can assume entire image as one strip .
      So in this case Rows per Strip = Image_length .

      I tried this and image worked .

      Read the following tag :-
      http://www.awaresystems.be/imaging/tiff/tifftags/rowsperstrip.html

      Attachments

        1. TiffReader.java.patch
          1 kB
          Piyush Kapoor
        2. TiffReader.java.patch
          1 kB
          Piyush Kapoor

        Activity

          People

            Unassigned Unassigned
            pkapoor Piyush Kapoor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified