Hi, i've been through this problem too. I've found a solution, not the best one i think , but a working one. I've done it with PHP.
There is a function in PHP Imagick that allow to get average values of channels. What i've done is compute the average value of the ALPHA channel. If it is greater than 0, then the image has transparency. The drawback is that this way is quite CPU heavy, but could not find another one. One can cache the result in database. Good luck, i don't have the code for this under my hand, so sorry to not giving an example. Pierre-Yves Dodger a écrit : > Would there be any way to do this in the PerlMagick API, though? > > I'd really rather not write out to disk and sling backticks. It's bad form. > > _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
