Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Content-type: image/png");
- $string = $_GET['text'];
- $im = imagecreatefrompng("card.png");
- $color = imagecolorallocate($im, 0, 0, 0);
- $px = (imagesx($im) - 9 * strlen($string)) / 2;
- imagestring($im, 24, $px, 14, $string, $color);
- $im2 = imagecreatefrompng("http://cravatar.eu/head/MCRocks999/250.png");
- imagesavealpha($im2, true);
- imagealphablending($im2, true);
- imagecopy($im, $im2, 50, 60, 0, 0, 338, 500);
- imagepng($im);
- imagedestroy($im);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement