Feature request #1357
[PATCH] Build overview for Jpeg-in-TIFF file only if GDAL uses libtiff >= 4.0
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||11417|
Pyramids cause tiff files to become reddish, and the lower right quadrant is not completed
#2 Updated by Paolo Cavallini almost 13 years ago
1) External pyramids seem ok. Internal cause a crash, and the resulting tiff is reddish with the missing tile
3) GDT_Byte - Eight bit unsigned integer Image Structure Metadata:
4) tested with Debian Lenny, both on 32 and 64 bit, plus 64 bit Fedora; GDAL 1.5.2-3
#3 Updated by ersts - almost 13 years ago
I was able to reproduce. It seems to be size dependent. Pyramids built ok on an 80x80 image but crashed on 8000x8000.
When it crashes I get
--> tif_jpeg.c:691: JPEGPreDecode: Assertion @sp->cinfo.comm.is_decompressor' failed.
So it is a GDAL problem. Will have to look through their tickets to see if this is a known problem.
#7 Updated by Even Rouault over 12 years ago
- Status changed from Closed to Feedback
- Resolution deleted (
Ticket #2033 was closed because the fix for it went to libtiff 4.0 branch, but libtiff < 4.0 has still the issue.
So I'm attaching a patch that enables to build safely overviews on Jpeg files or Jpeg-in-TIFF file by checking that GDAL uses libtiff >= 4.0. The "official" trick to do that is searching 'BIGTIFF' in the creation options of the GTiff driver.