Pillow
Pillow copied to clipboard
Skip truncated ICO mask if LOAD_TRUNCATED_IMAGES is enabled
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.