-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(psd): various PSD files fail to load correctly (#4302)
The primary issue seemed to be that the ChannelInfo width and height were not filled in for some of the layers, notably the merged image data layer in most(all?) cases. A second issue was that there was incorrect nesting of the switch statement in `read_channel_row`. The last 3 case statements were all nested under the `if (!bigendian()) {` conditional from the 1st case. Fixes #4298 ## Tests Use `iconvert` on all PSD files contained in the attached .zip. Converting to both .exr and .png is a good test to ensure the data is flowing out to those formats correctly. [psd.zip](https://github.com/user-attachments/files/15905814/psd.zip) --------- Signed-off-by: Jesse Yurkovich <[email protected]>
- Loading branch information
1 parent
097e645
commit e4577d0
Showing
8 changed files
with
41 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters