Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // ia valorile din index.
- $name = urldecode($_GET['name']);
- header ("Content-type: image/png");
- $im = imagecreatefrompng("xxx.png"); //sursa imaginii
- $fontfile = 'font.ttf'; // fontul
- $culoare = ImageColorAllocate($im, 0, 0, 0); // culoarea textului
- imagefttext($im, 30, 0, 260, 100, $culoare, $fontfile, $name); // scrie pe imagine
- imagepng($im);
- imagedestroy($im);
- ?>
Add Comment
Please, Sign In to add comment