id summary reporter owner description type status priority milestone component version severity resolution keywords cc 4771 [PATCH - libtiff] gdalwarp fails merging into deflate-compressed GTiff cdestigter warmerdam "gdalwarp fails when merging into this one particular deflate-compressed tiff. Other files are fine, just this specific tiff is problematic. Images: https://dl.dropbox.com/u/2649727/other.tif https://dl.dropbox.com/u/2649727/tiled-original.tif {{{ $ cp ~/tiled-original.tif ~/tiled-broken.tif ; LD_LIBRARY_PATH=.libs ./apps/gdalwarp ~/other.tif ~/tiled-broken.tif Processing input file /home/cdestigter/other.tif. Using band 4 of source image as alpha. Using band 4 of destination image as alpha. 0...10...20...30...40...50...60...70...80...90...100 - done. ERROR 1: ZIPDecode:Decoding error at scanline 1024, incorrect header check ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: ZIPDecode:Decoding error at scanline 1280, incorrect header check ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: ZIPDecode:Decoding error at scanline 1536, incorrect header check ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: ZIPDecode:Decoding error at scanline 1792, incorrect header check ERROR 1: TIFFReadEncodedTile() failed. }}} This happens on both 1.9.1 and trunk @ r24696 . If I remove the deflate compression, it works fine: {{{ $ cp ~/tiled-original.tif ~/tiled-broken.tif ; gdal_translate -co COMPRESS=NONE ~/tiled-broken.tif ~/tiled-uncompressed.tif ; LD_LIBRARY_PATH=.libs ./apps/gdalwarp ~/other.tif ~/tiled-uncompressed.tif Input file size is 4096, 4096 0...10...20...30...40...50...60...70...80...90...100 - done. Processing input file /home/cdestigter/other.tif. Using band 4 of source image as alpha. Using band 4 of destination image as alpha. 0...10...20...30...40...50...60...70...80...90...100 - done. }}}" defect closed normal 1.10.0 GDAL_Raster normal fixed libtiff rewrite tile