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

Added support for RGBA PSD images #6481

Merged
merged 1 commit into from
Aug 7, 2022
Merged

Conversation

radarhere
Copy link
Member

Resolves #6387

The issue reports a PSD file that is rendered incorrectly. The header of the PSD file in that issue specifies a mode (psd_mode) of 3, indicating RGB, but 4 channels (psd_channels). I attempted to load the image as RGBA instead, and it then loaded correctly.

I was able to recreate the situation by converting an existing RGBA test image to PSD with ImageMagick - convert imagedraw_square.png rgba.psd. That is the test file added in this PR.

@radarhere radarhere mentioned this pull request Aug 5, 2022
@gverm
Copy link

gverm commented Aug 5, 2022

@radarhere I can confirm that this PR fixes my issue, thanks.

@hugovk hugovk merged commit 38e411d into python-pillow:main Aug 7, 2022
@radarhere radarhere deleted the psd_rgba branch August 7, 2022 23:08
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.

PSD incorrectly loaded
3 participants