Skip to content

Conversation

rbrown
Copy link
Contributor

@rbrown rbrown commented Mar 2, 2015

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

I couldn’t see a better way to do this (short of converting all our existing images, and any new ones it RGB first. I wasn’t really sure if dropping the profiles in the PHP dir was the best place either, but couldn’t see another place to put it.

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
@datenbrille
Copy link

I will have look and thanks for the PR.

datenbrille added a commit that referenced this pull request May 18, 2015
Convert CYMK images to RGB
@datenbrille datenbrille merged commit e17f633 into magento-hackathon:master May 18, 2015
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