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

Fixed GD thumbnailing of an image with an icc profile. #1421

Merged
merged 1 commit into from
Aug 2, 2019

Conversation

Daniel-KM
Copy link
Contributor

When an image has an icc profile and gd is used, colors are no kept. This pr fixes it.
The issue may be the same for imagick, but it depends on the version. A fix for it can be done too, like in Daniel-KM/LibraryDeepzoom#1.

@zerocrates
Copy link
Member

So this just copies over the ICC profile from the input to the output; it's not doing any actual color conversion, correct?

@Daniel-KM
Copy link
Contributor Author

yes, it's a simple copy of the profile. You may find another way to extract/copy the profile, but the library works well.

@Daniel-KM
Copy link
Contributor Author

You can try with such an image : https://i.stack.imgur.com/p42W6.jpg

@Daniel-KM
Copy link
Contributor Author

Maybe a conversion may be a better way, but often unperfect.

@zerocrates zerocrates merged commit f0d14c2 into omeka:develop Aug 2, 2019
@Daniel-KM Daniel-KM deleted the fix/gd_icc branch August 5, 2019 16:51
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.

2 participants