What did you do?
I tried to save a PIL.Image.Image (mode=RGBA, size=335x333, 8 bits per sample) to a TIFF file with LZW compression and 9 rows per strip.
img.save('output.tiff', compression='tiff_lzw', tiffinfo={278: 9})
What did you expect to happen?
The file to be saved as a TIFF file with LZW compression and 9 rows per strip.
What actually happened?
The file was saved as a TIFF file with LZW compression and 48 rows per strip.
What are your OS, Python and Pillow versions?
- OS: Windows 10 64-bit
- Python: 3.9.5
- Pillow: 9.2.0