Advertisement
Guest User

Untitled

a guest
Jun 19th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2.     header("Content-Type: image/png");
  3.  
  4.     $dimensions = htmlentities(ltrim($_SERVER['PATH_INFO'], '/'));
  5.     $individual_dimensions = explode("x", $dimensions);
  6.  
  7.     $im = @imagecreate($individual_dimensions[0], $individual_dimensions[1])
  8.         or die("Cannot Initialize new GD image stream");
  9.     $background_color = imagecolorallocate($im, 195, 195, 195);
  10.     // $text_color = imagecolorallocate($im, 233, 14, 91);
  11.     // imagestring($im, 1, 5, 5,  "Placeholder image", $text_color);
  12.     imagepng($im);
  13.     imagedestroy($im);
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement