Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2. putenv('GDFONTPATH=' . realpath('.'));
  3. $img = ImageCreateFromPNG("1.png");
  4. $color = '79 89 114';
  5. $font = 'comic.ttf';
  6. $text = $_GET['q'];
  7. imagettftext($img, 30, 25, 100, 320, $color, $font, $text);
  8. $text = $_GET['t'];
  9. imagettftext($img, 38, 25, 130, 400, $color, $font, $text);
  10. $gaussian = array(array(4.0, 5.0, 4.0), array(5.0, 5.0, 5.0), array(4.0, 5.0, 4.0));
  11. imageconvolution($img, $gaussian, 41, 0);
  12. $picname = rand(00000000, 99999999);
  13. $name = 'signs/'.$picname.'.jpg';
  14. Imagejpeg($img, $name, 100);
  15. imagedestroy($img);
  16. echo '<img src="http://shkuragaming.ru/'.$name.'">';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement