-
Notifications
You must be signed in to change notification settings - Fork 187
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
Error and Corruption When Reopening PSD Files Saved with psd-tools #372
Comments
This is likely a bug in the low-level psd structure |
Found the cause of this. It affects every PSD that contains a SolidColor layer encoded with stringID instead of charID. The psd-tools/src/psd_tools/psd/descriptor.py Lines 69 to 77 in 03a14e2
Since those are the only keys with length greater than 4 (at least at the moment) you can just add a condition to only include length 4 byte strings to fix this, or move the keys to their own separate class. psd-tools/src/psd_tools/psd/descriptor.py Lines 52 to 56 in 03a14e2
|
Describe the bug
When attempting to reopen a psd file saved using psd-tools, an error occurs, preventing successful reopening.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Both "error_sample.psd" and "sample.psd" should be identical, and "sample.psd" should be successfully reopened without any errors.
File and screenshots
Error file:
error_sample.psd.zip
Error log:
Environment
Additional context
After investigating the issue, it has been discovered that the error occurs when there are layers that require clipping during the Lab to RGB conversion process.
The text was updated successfully, but these errors were encountered: