Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $message = $jsonData->message;
- $texts = wordwrap($message, 14, "\n", true);
- $img = imagecreatefromjpeg('542276_335572293203141_457333491_n.jpg');
- $w = imagesx($img);
- $h = imagesy($img);
- $text = imagecreatetruecolor($w, $h);
- //imagettftext($text, 14, 0, 30, 410, $fbltblue, $font, ''.$textl.' ');
- //imagestring($text, 5, 0, 0, $texts, 0x0000FF);
- imagecopymerge($img, $text, 0, 0, 0, 0, $w, $h, 50);
- header('Content-Type: image/jpeg');
- imagepng($img);
- imagedestroy($text);
- imagedestroy($img);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement