| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2007.02.20 21:52 "Patch: Support for reading single-strip files > 2Gb", by Matt HancherHello! As noted in bug 890, libtiff does not currently support reading strips larger than 2Gb. In practice this is only a problem because Photoshop likes to save files in single strips. That bug report suggests that this is difficult to fix because the strip API relies on the value -1 in tsize_t fields. This is actually not a problem. Libtiff is already spoofing the strip size of large single-strip files, so when you're invoking the strip APIs you're working with much smaller numbers. In fact, as far as I can tell you can get libtiff to read these tiff files just fine with two small tweaks that don't affect the external API a bit. I have attached a patch against the CVS head. The first change involves a downcast to tsize_t in a comparison, presumably to avoid a warning; I just upcast the other argument to uint32 instead. The second change involves a local copy of a uint32 value which was being held locally in a tsize_t by mistake. Seems to work fine now on my OS X box. I'm curious to hear any comments. Matt Matthew D. Hancher Intelligent Systems Division NASA Ames Research Center Official: mdh@email.arc.nasa.gov Personal: mdh@maximumentropy.org |
|||||||