Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $img = imagecreatefrompng('http://i.imgur.com/iTgGpao.png');
- imagealphablending($img, true);
- imagesavealpha($img, true);
- $white = imagecolorexact($img, 255, 255, 255);
- imagecolortransparent($img, $white);
- imagepng($img, 'result.png');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement