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 CYMK to RGB conversion when Magento compiler is on #17

Closed
wants to merge 18 commits into from

Conversation

jasperthedummy
Copy link

Refering to Issue #16.

colinmollenhour and others added 18 commits February 11, 2013 16:01
Added a LICENSE.txt with OSL License. This fixes issue magento-hackathon#5
Conflicts:
	src/app/code/community/Varien/Image/Adapter/Imagemagic.php
And also improves consistency with
- Varien_Image_Adapter_Gd2 from Magento 1
- Magento\Framework\Image\Adapter\ImageMagick from Magento 2
…size

This fixes an issue you have when performing a crop after a resize.
Some of our images are in CMYK, when they're resized onto a different shape
canvas, the canvas colour inverts when the colorspace is changed. This patch
tries to convert the CMYK images to sRGB before compositing them. The conversion
code was taken from http://php.net/manual/en/imagick.setimagecolorspace.php
@rbrown
Copy link
Contributor

rbrown commented May 26, 2015

jasperthedummy, you might want to rebase this against magento-hackathon:master rather than :develop, I don't think :develop is being used, and this pull request includes lots of commits that are already on master.

@jasperthedummy
Copy link
Author

Alright, closing this PR and creating a new PR to master.

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.

7 participants