php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57864 setImageOpacity method missing
Submitted: 2007-10-04 03:46 UTC Modified: 2007-10-04 19:53 UTC
From: pecl at davidkmuir dot com Assigned:
Status: Not a bug Package: imagick (PECL)
PHP Version: 5.2.1 OS: Ubuntu/Linux
Private report: No CVE-ID: None
 [2007-10-04 03:46 UTC] pecl at davidkmuir dot com
Description:
------------
Imagick::setImageOpacity() method is missing from Imagick 2.0.0

listing of get_class_methods('imagick');
does not show setImageOpacity()


Reproduce code:
---------------
header('Content-type: image/jpeg');

$image1 = new Imagick('test1.jpg');
$image2 = new Imagick('test2.jpg');

$image2->setImageOpacity(0.7);

$image1->compositeImage($image2, Imagick::COMPOSITE_OVER, 0, 0);

echo $image1;

Expected result:
----------------
Should display a composite of two images.

Actual result:
--------------
Fatal error: Call to undefined method Imagick::setImageOpacity()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-04 03:59 UTC] mkoppanen@php.net
From the documentation: "Sets the image to the specified opacity level. This method is present if Imagick is compiled against ImageMagick 6.3.1 or later."

What version of ImageMagick are you using? (You can see that from phpinfo)
 [2007-10-04 19:53 UTC] pecl at davidkmuir dot com
Version was 6.2.4
Darn Ubuntu packages being 100 versions old...
How can this be replicated using an older version?
 [2007-10-04 19:53 UTC] pecl at davidkmuir dot com
Version was 6.2.4
Darn Ubuntu packages being 100 versions old...
How can this be replicated using an older version?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 12:01:29 2024 UTC