Pillow icon indicating copy to clipboard operation
Pillow copied to clipboard

Skip truncated ICO mask if LOAD_TRUNCATED_IMAGES is enabled

Open radarhere opened this issue 1 year ago • 0 comments

Investigating https://github.com/python-pillow/Pillow/issues/6507#issuecomment-2199451130, there is an ICO image with a truncated transparency mask.

This PR allows ImageFile.LOAD_TRUNCATED_IMAGES to skip the mask and keep the rest of the image.

radarhere avatar Jul 01 '24 09:07 radarhere