|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-30 16:56 UTC] bondu at iowalab dot com
[2013-12-03 11:38 UTC] mike@php.net
-Status: Open
+Status: Not a bug
[2013-12-03 11:38 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 00:00:02 2025 UTC |
Description: ------------ The imagick_transformrgb function is not working with ImageMagick (at least not with 5.5.7). If I want to convert a CMYK JPEG into RGB it simply does nothing. The result is still a CMYK JPEG. But with GraphicsMagick (1.1.2) it works. Instead ImageMagick's SetImageColorSpace function works so it may be useful to switch to this function. But this function does not work with GraphicsMagick 1.1.2 (Compiles fine but results in a segfault). So a compiler switch may be needed. SetImageColorSpace has exactly the same syntax as the TransformRGB function. I'm not fit enough in API issues of ImageMagick/GraphicsMagick so I have no idea if it is a good thing to have a imagick_transformrgb() function which calls the ImageMagick's SetImageColorSpace function. Maybe it's better to have a imagick_setcolorspace function (which would be intuitiv because there is already an imagick_getcolorspace function). Reproduce code: --------------- $handle = imagick_readimage('cmyk.jpeg'); imagick_transformrgb($handle, IMAGICK_COLORSPACE_RGB); imagick_writeimage($handle, 'rgb.jpeg'); Expected result: ---------------- A rgb.jpeg with RGB colorspace Actual result: -------------- A rgb.jpeg with untouched CMYK colorspace