Expand|Select|Wrap|Line Numbers
- header("Content-Type: image/png");
- $im = imagecreatefromjpeg("http://www.bungie.net/stats/reach/nightmap.ashx");
- $bg = imagecolorallocate($im, 11, 12, 14);
- imagesavealpha($im, true);
- imagecolortransparent($im, $bg);
- imagepng($im);
Expand|Select|Wrap|Line Numbers
- header("Content-Type: image/png");
- $jpeg = imagecreatefromjpeg("http://www.bungie.net/stats/reach/nightmap.ashx");
- $im = imagecreatetruecolor(imagesx($jpeg), imagesy($jpeg));
- imagecopymerge($im, $jpeg, 0, 0, 0, 0, imagesx($jpeg), imagesy($jpeg), 100);
- imagedestroy($jpeg);
- $bg = imagecolorallocate($im, 11, 12, 14);
- imagesavealpha($im, true);
- imagecolortransparent($im, $bg);
- imagepng($im);
Anyone have any ideas as to how I might get this to work, preferably without using a mask.