note 107831 rejected from function.imagecreate by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 18:17:21 +0000 |
| Subject: | note 107831 rejected from function.imagecreate by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187749@lists.php.net to get a copy of this message | ||
Note Submitter: access dot ratnajit at gmail dot com
----
Hello!
I'm using XAMPP 1.7.7 having PHP 5.3.8 and GD 2.0.34 where JPEG Support is enabled.
After using the following code to create an image, some errors are displaying every time I refresh
the page.
Code written:
<?php
header("Content-type: image/jpeg");
$myImg=imagecreate(30,10);
$bgcolor=imagecolorallocate($myImg,0,0,0);
$fgcolor=imagecolorallocate($myImg,14,43,71);
imagestring($myImg,1,1,1,"myText", $fgcolor);
imagejpeg($myImg);
?>
Errors displayed:
����JFIF��>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality ��C $.' ",#(7),01444'9=82<.342��C
2!!22222222222222222222222222222222222222222222222222��
"��
���}!1AQa"q2���#B��R��$3br�
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
Please help me in this regard.
Thank you!