Closed anloubie2 closed 4 months ago
The PNG you've attached is actually in L mode, not I;16*, so I can't replicate this exactly, but I expect #7849 is what triggered this change, by changing 16-bit grayscale PNGs to open in I;16 mode rather than I mode.
I've created #8112 to fix the polygon position.
Your value for WHITE
is slightly too high for a 16-bit image at 65536 (0x10000), but if you change it to 65535 (0xFFFF), it should work.
What did you do?
I drew a polygon on an image (16 bits grayscale)
What did you expect to happen?
The polygon should have been created at the specified coordinates
What actually happened?
The polygon was
What are your OS, Python and Pillow versions?
When trying to draw a polygon on a 16 bits grayscale image, everything works fine with version 10.2.0 but the polygon is misplaced and its outline color is ignored with version 10.3.0.
Note that both these issues are fixed in 10.3.0 if a fill color is specified as well
Source image here: