php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66640 setColorspace Not Functioning Properly
Submitted: 2014-02-04 02:07 UTC Modified: 2015-01-01 22:42 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: cashmaster12 at gmail dot com Assigned:
Status: Not a bug Package: imagick (PECL)
PHP Version: 5.5.8 OS: Windows 7 [x86]
Private report: No CVE-ID: None
 [2014-02-04 02:07 UTC] cashmaster12 at gmail dot com
Description:
------------
I had been using Imagick 3.1.2 version, and I see that there is some bug in setColorspace function. The output of this function is always the same image, irrespective of the Colorspace constant I use.

Test script:
---------------
$img = new Imagick();
$img->setColorspace(imagick::COLOSPACE_GRAY);
$img->readImage('i.jpg');
$img->writeImage('o.jpg');
$img->destroy();

Expected result:
----------------
I expect to get a full grayscale image as output, and yet I do not get so.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-01 22:32 UTC] Danack at basereality dot com
Not a bug.

The correct function to use is transformImageColorspace. I think setColorspace is for new images created in memory e.g. with newPseudoImage
 [2015-01-01 22:42 UTC] daverandom@php.net
-Status: Open +Status: Not a bug
 [2015-01-01 22:42 UTC] daverandom@php.net
Not a bug, per comment by Danack at basereality dot com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC