Pillow
Pillow copied to clipboard
Do not read layers immediately when opening PSD images
When opening a PSD image, this PR skips reading and parsing the PSD layers until the user calls im.layers, im.n_frames or im.is_animated.
This will improve performance, and also allow users who just want to open() an image without seeking to workaround any errors that might be raised when parsing layers, such as in #8034