Open regisrob opened 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.
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:
convert input.tif -define tiff:tile-geometry=256x256 -compress zip 'ptif:output.tif'
vips im_vips2tiff input.tif output.tif:deflate,tile:256x256,pyramid