Hi,

recently I've had a problem with this module when generating some of my styles.

The problem is in file effects/imagick.colorshift.inc on line 16:

return $image->resource->colorizeImage(new ImagickPixel($color), 1);

Now it works after I changed the code to this:

return $image->resource->colorizeImage(new ImagickPixel($color), 1, true);

Hope this helps
Bye

CommentFileSizeAuthor
#2 3026933-2.Imagick.colorizeImage-problem.patch583 bytesgpz

Comments

matuspo created an issue. See original summary.

gpz’s picture

Version: 7.x-1.3 » 8.x-1.2
StatusFileSize
new583 bytes

A patch with this fix for 8.x-1.2 version

  • bceyssens committed 179cafe on 8.x-1.x authored by GPZ
    Issue #3026933 by GPZ: Imagick::colorizeImage problem
    
bceyssens’s picture

Status: Active » Fixed

Apparently functionality changed so a $legacy argument was added.

Now allows a string representing the color as the first parameter and a float representing the opacity value as the second parameter. Previous versions allow only an ImagickPixel objects.

https://www.php.net/manual/en/imagick.colorizeimage.php

@GPZ, thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.