loris-imageserver / loris

Loris IIIF Image Server
Other
209 stars 87 forks source link

PIL issue with TIFF compressed with deflate method #121

Open regisrob opened 10 years ago

regisrob commented 10 years ago

I guess it's not an issue on the Loris side but I'm reporting it here as a shared note. I noticed that when a TIFF is compressed with deflate method, Loris (PIL) throws a 500 error "IOError: decoder tiff_adobe_deflate not available". I don't have any idea about what is missing on the system (I have libtiff4 and its headers). It's not an issue for our use of Loris but I think it' good to know... (even if jpeg may be the more widespread compression method).

Here are the commands used to convert to tiled Tiff:

jpstroop commented 10 years ago

Thanks! I've had some trouble writing (deriving) TIFFs with Pillow as well, but haven't looked into too deeply since it seems like such a feature would have limited uses.

This makes sorting it all out a little more compelling, as I assume there are optimizations that could be made when a tiled TIFF is detected.