php - Preserving the alpha channel when quantizing image in ImageMagick? -


I am currently trying to measure an image using ImageMagic in PHP, which works fine, alpha channel Is not preserved. If I repeat through each pixel and calculate the number of pixels with 0 alpha values ​​before quantization, then this is correct, but after the quantization, almost all the images have alpha value of 0.

Is there a way to preserve this data through the qualification process?

While using command-line imagemagic tools, a way to ignore alpha channels: convert alpha_greatient - transparent + exception-color 15 alpha_colars_15qt.png

whether the option "transparent" What does PHP look like?

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -