#6264 closed defect (fixed)

GeoTIFF JBIG decoding fails

Reported by: ahaensler Owned by: warmerdam
Priority: normal Milestone: 2.0.2
Component: GDAL_Raster Version: 2.0.1
Severity: normal Keywords: gtiff
Cc:

Description

libtiff does not support reading JBIG files with TIFFReadScanline(). Only TIFFReadEncodedStrip() works. Suggested patch:

--- frmts/gtiff/geotiff.cpp	2015-12-15 00:10:45.480264299 +0100
+++ frmts/gtiff/geotiff.cpp	2015-12-15 00:10:40.446300278 +0100
@@ -9481,6 +9481,7 @@
         if( !TIFFIsTiled(hTIFF) 
             && nBlockYSize == nYSize 
             && nYSize > 2000
+            && nCompression != COMPRESSION_JBIG)
             bTreatAsSplitBitmap = TRUE;
     }

Change History (1)

comment:1 Changed 18 months ago by Even Rouault

Milestone: 2.0.2
Resolution: fixed
Status: newclosed

trunk r32182, branches/2.0 r32183 "GTiff: do not read large 'one row' JBIG compressed files with the scanline API (patch by ahaensler, #6264)"

Note: See TracTickets for help on using tickets.