Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- putenv('GDFONTPATH=' . realpath('.'));
- $img = ImageCreateFromPNG("1.png");
- $color = '79 89 114';
- $font = 'comic.ttf';
- $text = $_GET['q'];
- imagettftext($img, 30, 25, 100, 320, $color, $font, $text);
- $text = $_GET['t'];
- imagettftext($img, 38, 25, 130, 400, $color, $font, $text);
- $gaussian = array(array(4.0, 5.0, 4.0), array(5.0, 5.0, 5.0), array(4.0, 5.0, 4.0));
- imageconvolution($img, $gaussian, 41, 0);
- $picname = rand(00000000, 99999999);
- $name = 'signs/'.$picname.'.jpg';
- Imagejpeg($img, $name, 100);
- imagedestroy($img);
- echo '<img src="http://shkuragaming.ru/'.$name.'">';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement