Hello!
I'm building one kind of system, which simply creates dynamic image from other image. I use imagecreatefromstring(file_get_contents("clown_avatar.png")) to create image and output it successfully, but it messes all the colors on the transparent area. Check out the original image:
And here is the result from php-file:
Lol, I'm not good with stackoverflow editor yet, but hope you understood what I was talking about. Please can someone help? I tried to add background-color with imagecolorallocate but didn't effect at all.
EDIT: Here's the source, just few rows.
<?php
$im = imagecreatefromstring(file_get_contents("clown_avatar.png"));
//$bg = imagecolorallocate($im,0,0,0); doesn't effect
Header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);
?>