Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not read layers immediately when opening PSD images #8039

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented May 2, 2024

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 radarhere changed the title Do not read layers when opening PSD images Do not read layers immediately when opening PSD images May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant