Bug #10078 Updated: Problems with ImageCreate function

From: Date: Wed, 02 May 2001 22:18:13 +0000
Subject: Bug #10078 Updated: Problems with ImageCreate function
Groups: php.dev 
Request: Send a blank email to php-dev+get-53479@lists.php.net to get a copy of this message
ID: 10078 Updated by: jmoore Reported By: a_ratz@mail.ru Old-Status: Feedback Status: Closed Bug Type: GD related PHP Version: 4.0.4pl1 Assigned To: Comments: No feedback. Closing - James Previous Comments: --------------------------------------------------------------------------- [2001-03-31 17:29:49] sniper@php.net 1. Which version of GD library do you have? 2. Does some other image type work? Like png? 3. Please try also with the latest CVS build from http://www.php4win.de --Jani --------------------------------------------------------------------------- [2001-03-31 11:09:27] a_ratz@mail.ru When I tried to use ImageCreate and other GD functions in PHP, it happend to be not functioning correct: ImageCreate failed to return image descriptor, instead it returned undefined value. How can I fix this problem? For Example: <?php Header("Content-type: image/gif"); $string=implode($argv," "); $im = imagecreatefromgif("images/button1.gif"); $orange = ImageColorAllocate($im, 220, 210, 60); $px = (imagesx($im)-7.5*strlen($string))/2; ImageString($im,3,$px,9,$string,$orange); ImageGif($im); ImageDestroy($im); ?> This Example doesn't generate an image I don't know Why? Please reply my letter as soon as you can. My e-mail address is a_ratz@mail.ru Thanks! --------------------------------------------------------------------------- [2001-03-31 10:54:47] a_ratz@mail.ru When I tried to use ImageCreate and other GD functions in PHP, it happend to be not functioning correct: ImageCreate failed to return image descriptor, instead it returned undefined value. How can I fix this problem? For Example: <?php Header("Content-type: image/gif"); $string=implode($argv," "); $im = imagecreatefromgif("images/button1.gif"); $orange = ImageColorAllocate($im, 220, 210, 60); $px = (imagesx($im)-7.5*strlen($string))/2; ImageString($im,3,$px,9,$string,$orange); ImageGif($im); ImageDestroy($im); ?> This example doesn't generate an image. I don't know why Please reply my letter as soon as you can. My e-mail address is a_ratz@mail.ru Thanks! --------------------------------------------------------------------------- [2001-03-30 14:51:59] sniper@php.net Please include the shortest possible self containing PHP script into this bug report which can be used to reproduce this. --Jani --------------------------------------------------------------------------- [2001-03-30 11:27:57] a_ratz@mail.ru When I tried to use ImageCreate and other GD functions in PHP, it happend to be not functioning correct: ImageCreate failed to return image descriptor, instead it returned undefined value. How can I fix this problem? Please reply my letter as soon as you can. My e-mail address is a_ratz@mail.ru Thanks! --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10078&edit=2

« previous php.dev (#53479) next »