Bug #17526 Updated: ImageCreate() is not working properly in php 4.2.1.
| From: | sniper@php.net | Date: | Thu, 30 May 2002 14:49:59 +0000 |
| Subject: | Bug #17526 Updated: ImageCreate() is not working properly in php 4.2.1. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8931@lists.php.net to get a copy of this message | ||
ID: 17526
Updated by: sniper@php.net
Reported By: nicke@nicke.nu
-Status: Open
+Status: Bogus
-Bug Type: *Graphics related
+Bug Type: *General Issues
Operating System: Linux 2.4.18
PHP Version: 4.2.1
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Check the error_log for the reason why it's broken. This is not related
to GD at all.
Previous Comments:
------------------------------------------------------------------------
[2002-05-30 09:54:51] nicke@nicke.nu
This worked just fine in version 4.1.2. There is just an broken image
on the webpage.
Here is the code i'm using.
<?
Header ("Content-type: image/jpeg");
$im = ImageCreate(800,70) or die ("Cannot initialize GD library");
$white = ImageColorAllocate ($im, 255, 255, 255);
$blue = ImageColorAllocate ($im, 48, 100, 152);
ImageTTFText ($im, 42, 0, 0, 58, $blue,
"/usr/share/fonts/ttf/verdana.ttf", "$agitext");
ImageJpeg ($im, "", 95) or die ("Cannot create image");
$filepath ="./agi";
$filename = "agi.jpg";
ImageJpeg ($im, "$filepath/$filename", 95);
ImageDestroy ($im);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17526&edit=1