init
This commit is contained in:
14
standalone/image.php
Executable file
14
standalone/image.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
header("Content-type: image/png");
|
||||
|
||||
$iHeight = 150;
|
||||
$iWidth = 200;
|
||||
|
||||
$im = @imagecreate($iWidth, $iHeight) or die("Cannot Initialize new GD image stream");
|
||||
$background_color = imagecolorallocate($im, 145, 145, 145);
|
||||
$text_color = imagecolorallocate($im, 255, 255, 255);
|
||||
imagestring($im, 4, 5, $iHeight-20, "Picture 12", $text_color);
|
||||
imagepng($im);
|
||||
imagedestroy($im);
|
||||
?>
|
||||
Reference in New Issue
Block a user