daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $w=400;
  3. $h=50;
  4. $img = ImageCreateTrueColor($w, $h);
  5. $font = $_GET['font'];
  6. $name = $_GET['name'];
  7.  
  8. $white = imagecolorallocate($img, 255, 255, 255);
  9. $grey = imagecolorallocate($img, 102, 102, 102);
  10.  
  11. $font = 'fonts/'.$font.'.ttf';
  12.  
  13.  
  14. imagettftext($img, 18, 0, 11, 31, $grey, $font, $name);
  15. imagettftext($img, 18, 0, 10, 30, $white, $font, $name);
  16.  
  17.  
  18. header('Content-type: image/png');
  19. imagepng($img);
  20. imagedestroy($img);
  21. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top