-
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
Thumbnail with icc-profile #100
Comments
This is likely due to the difference between Pillow's handling of ICC profiles for PSD files. Current psd-tools approach is to convert to sRGB space for RGB documents, and do nothing for other colors. |
Thank you for answer. |
@andrey-hider Sure, it is reasonable to control the behavior perhaps with argument options. Will consider in the next release. The current behavior is to reflect the display color of the document in Photoshop UI. Without sRGB conversion, color looks different from Photoshop UI. |
@andrey-hider ver 1.8.12 supports the following: icc_profile = psd.image_resources.get_data('ICC_PROFILE')
image = psd.compose(apply_icc=False)
image.save('output.png', icc_profile=icc_profile) |
@kyamagu Thank you for update. I'm trying to execute new version and got next error:
Code that I used:
Do you have ideas why I have this error? Thank you! |
Can you try this?
pip install -U attrs
|
@kyamagu Thank you, it works. |
From https://github.com/kyamagu/psd-tools/issues/99
The text was updated successfully, but these errors were encountered: