SHARE
TWEET

Untitled

a guest Jun 19th, 2012 26 Never
  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. ?>
RAW Paste Data
Top