php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59091 Setting Image Colorspace from RGB to CMYK creates negative image
Submitted: 2010-02-27 07:13 UTC Modified: 2010-05-21 04:18 UTC
From: junkboypaul at hotmail dot com Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: junkboypaul at hotmail dot com
New email:
PHP Version: OS:

 

 [2010-02-27 07:13 UTC] junkboypaul at hotmail dot com
Description:
------------
When using setImageColorspace to convert RGB image to CMYK, it looks as if it creates a negative image, i've tried various RGB images, but seems to invert them all

Reproduce code:
---------------
	$im = new Imagick('Waterfall.jpg');
	$im->setImageColorspace(Imagick::COLORSPACE_CMYK);
	header('Content-Type: image/jpg');
	echo $im;


Expected result:
----------------
To reproduce the same image but in CMYK format

Actual result:
--------------
Creates a negative of the original image

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-28 07:10 UTC] mkoppanen@php.net
Can you submit example image?
 [2010-05-20 14:00 UTC] lars dot strojny at jarlssen dot de
The issue is, to make this work according, one needs to use 
MagickTransformImageColorspace to make this kind of 
transformation correctly working internally. Attached is a 
patch that introduces a new method to Imagick, 
Imagick::transformImageColorspace() and works properly.
 [2010-05-20 14:03 UTC] lars dot strojny at jarlssen dot de
As there is no way to attach I file, here is a link to the 
patch: http://pastebin.com/j99anEgx

Credits for the patch go to Patrick Durold 
<patrick.durold@jarlssen.de>
 [2010-05-21 04:18 UTC] mkoppanen@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 22:01:29 2024 UTC