php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63331 Default colorspace in ImageMagick has changed
Submitted: 2012-10-22 12:07 UTC Modified: 2015-01-05 02:52 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:0 of 1 (0.0%)
From: remko at paragin dot nl Assigned:
Status: Not a bug Package: imagick (PECL)
PHP Version: 5.3.18 OS: Mac OS X (Mountain Lion)
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: remko at paragin dot nl
New email:
PHP Version: OS:

 

 [2012-10-22 12:07 UTC] remko at paragin dot nl
Description:
------------
According to http://www.imagemagick.org/discourse-server/viewtopic.php?f=4&t=21269 
, the default colorspace from ImageMagick has been changed from linear RGB to 
sRGB. This means that when I create a new image with "newImage()", the system 
assumes the sRGB colorspace. 

This means that my images now turn out a lot darker than earlier (see also 
http://blog.dev001.net/post/32682776195/typo3-workaround-for-too-dark-images-
since). Besides this, when I convert this back to RGB colorspace using the 
setColorSpace function, the conversion gives unexpected results, and creates 
images that have slightly different color than expected.

To fix this in the commandline version of ImageMagick, you need to set the default 
colorspace by using "-colorspace RGB" as your first parameter. The PHP module does 
not have an option for setting the default colorspace, so each new image or 
ImagickPixel that is created has the sRGB colorspace by default (see code 
example).

I'm using imagick module version 3.0.1, together with ImageMagick 6.8.0-0 2012-10-
18, which is the current defautl MacPorts version.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-11 07:34 UTC] remko at paragin dot nl
After doing a upgrade of ImageMagick / Imagick with Macports, the issue appears to 
be fixed. 
The current versions I have are: 

PHP 5.4.16
imagick module version	3.1.0RC2
ImageMagick version	ImageMagick 6.8.5-5 2013-06-10 Q16 
http://www.imagemagick.org

I've no idea what actually changed.
 [2015-01-04 16:30 UTC] Danack at basereality dot com
There are some more details of what was changed here:

http://www.imagemagick.org/script/color-management.php

The short version of which is....everything is 'fine', but yes current versions of ImageMagick may not behave exactly the same as quite old versions of ImageMagick.
 [2015-01-05 02:52 UTC] danack@php.net
-Status: Open +Status: Not a bug
 [2015-01-05 02:52 UTC] danack@php.net
Not a bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC