Page 2 of 2

Re: How to view large PNG images after upload?

PostPosted: Thu May 22, 2014 8:02 pm
by jamesan
mlinkert wrote:
The only requirement is for a single TIFF file that stores the image(s) internally as a set of tiles, rather than storing the entire image in one big block - this is part of the TIFF standard, and a common feature for software that writes TIFF files. I believe that Pillow can do this, but am not positive; if you aren't sure, we can verify given either a file or the output of 'tiffinfo file.tiff' (tiffinfo being part of libtiff: http://www.libtiff.org/tools.html).


Thanks for pointing this out. The tiled tiff is a good direction for me to go.

I've checked the Pillow docs and Pillow can read but not write tiled tiffs. I'll ask if they have an interest in adding write ability.

[edit]
After reading more I may be mistaken. I will try first and find out.

Re: How to view large PNG images after upload?

PostPosted: Thu May 22, 2014 11:19 pm
by jamesan
Pillow does not support writing Tiled Tiff images at this time. I filed an enhancement request:
https://github.com/python-imaging/Pillow/issues/672#issuecomment-43953533

PyLibTiff may support writing tiles:
https://code.google.com/p/pylibtiff/

I will keep poking around on how to write tiled tiff from Python.