Advertisement
ShawnsSpace

Inoshent GD

Dec 3rd, 2013
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. $message = $jsonData->message;
  2. $texts = wordwrap($message, 14, "\n", true);
  3. $img = imagecreatefromjpeg('542276_335572293203141_457333491_n.jpg');
  4. $w = imagesx($img);
  5. $h = imagesy($img);
  6. $text = imagecreatetruecolor($w, $h);
  7. //imagettftext($text, 14, 0, 30, 410, $fbltblue, $font, ''.$textl.' ');
  8. //imagestring($text, 5, 0, 0, $texts, 0x0000FF);
  9. imagecopymerge($img, $text, 0, 0, 0, 0, $w, $h, 50);
  10. header('Content-Type: image/jpeg');
  11. imagepng($img);
  12. imagedestroy($text);
  13. imagedestroy($img);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement