php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58460 colorizeImage ignores opacity
Submitted: 2008-12-16 08:13 UTC Modified: 2008-12-16 08:50 UTC
From: david dot rekowski at gmx dot de Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.2.5 OS: Ubuntu 8.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david dot rekowski at gmx dot de
New email:
PHP Version: OS:

 

 [2008-12-16 08:13 UTC] david dot rekowski at gmx dot de
Description:
------------
PHP version is actually 5.2.6
Imagick version is actually 2.2.1rc1

Reproduce code:
---------------
// opaque
$im = new Imagick();
$im->newImage(100, 100, '#CCCCCC', 'png');
$im->colorizeImage('#0000FF', 1);
header('content-type: image/png');
echo $im;

// transparent
$im = new Imagick();
$im->newImage(100, 100, '#CCCCCC', 'png');
$im->colorizeImage('#0000FF', 0);
header('content-type: image/png');
echo $im;


Expected result:
----------------
The first image should be bluish, the second one grey, since the blue should is set to complete transparency (0).

Actual result:
--------------
Both images are bluish in the same degree.

Please have a look at imagick_class.c:5679. The intern_opacity from 5675 is not processed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-16 08:50 UTC] mkoppanen@php.net
This bug has been fixed in CVS.

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 15:01:36 2025 UTC