Skip to content

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