Open hengsoheak opened 7 years ago
Unable to set image alpha channel
That's the whole output?
Which line does it occur on?
Dear Danack,
Errors : Unable to set image alpha channel (On Method $imagick->setImageAlphaChannel(\Imagick::ALPHACHANNEL_DEACTIVATE);) URL : http://camvgo.com/game/cards/2#
Does it require any package to run this services?
@hengsoheak The stack trace you provided is nothing like the code sample you originally posted.
Please post a reproducible example if you want me to investigate. I don't have time to guess what code is actually being run.
However, there's a reasonable chance you've just cocked up your computer by installing ImageMagick 7, but also are using a version of Imagick that was compiled against ImageMagick 6, as the value of \Imagick::ALPHACHANNEL_DEACTIVATE should be 5 on ImageMagick 7, but in your stack trace it seems to have the value of 4, if that is what the code is actually calling.
There is actually code in place to detect that situation and give a warning....but maybe it's not working or you've just disabled/ignored that warning?
I'm trying to create transparent image with ImageMagick with the backgroundMasking method which I found on http://phpimagick.com/Tutorial/backgroundMasking but I got errors as below messages.
This is my ImageMagick invironment
Version: ImageMagick 7.0.5-4 Q16 x86_64 2017-04-03 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI OpenMP Delegates (built-in): bzlib djvu fontconfig freetype gvc jbig jng jpeg lcms lqr lzma openexr png tiff wmf x xml zlib
However I've run ./configure --enable-hdri --with-quantum-depth=32 and make install commend but I'm still facing this problem.
Problem
Unable to set image alpha channel