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: whether the option "transparent" What does PHP look like? convert alpha_greatient - transparent + exception-color 15 alpha_colars_15qt.png
Comments
Post a Comment