-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to set image alpha channel #279
Comments
What type of image is it (gif, png, jpg), and is it one image in particular or all images/...of that type? |
The file is a PNG with transparency, but i'm sure we did try it with a Jpeg but still get this the error. The line is like you said:
The Image Driver version is |
I was able to reproduce this by compiling ImageMagick 6.7.8-10 and Imagick 3.4.4. But I've not been able to find a solution or workaround for the issue. Something is missing/wrong with that version of ImageMagick and/or Imagick, the code works in both older and newer versions I've tested. My only advise would be to either upgrade ImageMagick, or work around the issue. The grayscale effect can be replaced by Please not that you can also make your own, custom effects if you need more complex logic to produce the desired effect. |
@aelvan Okay yeah, I double checked locally and that version is |
We're getting the error
ImagickException Unable to set image alpha channel
when using effectsgrayscale
,gamma
andcolorBlend
using Imagick:This seems to work fine locally but not on our staging env. The PHP versions are the same and so are the ImageMagick versions:
I've checked the It seems to be choking on this part of the plugin:
Is this possibly related to the PR #142, which I'm unsure if it got merged or not, and also it seems old.
Using:
PHP 7.0.33
MySQL 5.7
Craft CMS 3.3.4.1
Imager 2.2.0
The text was updated successfully, but these errors were encountered: