Make white transparent on the outside only
问题 I am using imagick with php to modify uploaded images. I want to remove the white around an image to make it have a transparent background. Using this: $val = 65535/15; $val = intval($val/1);//divide by 1 means accept full fuzz at the moment $image->paintTransparentImage("rgb(255,255,255)", 0.0, intval(1*$val); However, if I upload a picture of someone with white teeth, it makes their teeth vanish! So am i missing something that I could do to prevent that or should I just drop the idea? 回答1: