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

Fix color management by keeping ICC color profiles and EXIF data in addition #136

Merged
merged 15 commits into from
Nov 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix the implementation of the methods add_icc_profile() and add_exif_…
…data(). Add sanity check to save_as_jpeg() method for testing purposes
  • Loading branch information
andre-fuchs committed Nov 2, 2023
commit ae116abc7bb85140159e7c9545c26e692ef94712
2 changes: 2 additions & 0 deletions willow/plugins/pillow.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ def add_icc_profile(self, image, kwargs):
"""
Take over the ICC color profile from the original image
"""
print('W I L L O W', 'ADD ICC PROFILE')
icc_profile = image.info.get('icc_profile')
if icc_profile is not None:
print('W I L L O W', 'ADD ICC PROFILE', 'GOT ICC PROFILE')
kwargs['icc_profile'] = icc_profile
return kwargs

Expand Down