You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PlanarConfiguration tag value is wrong. It should be CONTIG (but is SEPARATE). You can verify by patching the example file with a hex editor at position 126 from 2 to 1.
Activity
cgohlke commentedon Jan 31, 2019
The PlanarConfiguration tag value is wrong. It should be CONTIG (but is SEPARATE). You can verify by patching the example file with a hex editor at position 126 from 2 to 1.
radarhere commentedon Feb 1, 2019
You've provided a copy of the output image. Are you able to provide a copy of one of the images that you are running this script over?
cgohlke commentedon Feb 1, 2019
It seems any input image with PlanarConfiguration=2 will trigger this bug.
radarhere commentedon Feb 1, 2019
Ok, thanks. On macOS 10.14, if I try to save https://github.com/python-pillow/Pillow/blob/master/Tests/images/tiff_tiled_planar_raw.tif I get a black image.
Presuming that this is the same issue, if you're interested in an immediate solution, I would recommend adding in
im._planar_configuration = 1-[-]TIF Images corrupt after Image.save()[/-][+]PlanarConfiguration save[/+]radarhere commentedon Jan 18, 2022
I've created #5973 to fix this.