Pillow icon indicating copy to clipboard operation
Pillow copied to clipboard

Do not read layers immediately when opening PSD images

Open radarhere opened this issue 1 year ago • 0 comments

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

radarhere avatar May 02 '24 02:05 radarhere