Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <?php
  2. $userID = $_GET['userID'];
  3. $my_img = imagecreatefromjpeg ( "default.jpg" );
  4. $text_colour = imagecolorallocate( $my_img, 255, 255, 0 );
  5. $font ='./arialbd.ttf';
  6. $font_size = 12;
  7. $font_color = 0xFFFF00;
  8.  
  9. //echo "Welcome! Your sig can be found below!<br>";
  10. //$info = mysql_fetch_array($user);
  11. imagettftext($my_img, $font_size, 0, 10, 50, $font_color, $font, "test");
  12.  
  13. imagestring( $my_img, 4, 10, 10, $userID, $text_colour );
  14. imagesetthickness ( $my_img, 10 );
  15.  
  16. header( "Content-type: image/jpeg" );
  17. imagepng( $my_img );
  18. imagecolordeallocate( $line_color );
  19. imagecolordeallocate( $text_color );
  20. imagecolordeallocate( $background );
  21. imagedestroy( $my_img );
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement