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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pecl at davidkmuir dot com
New email:
PHP Version: OS:

 

 [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: Fri Mar 29 07:01:28 2024 UTC