|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-03-30 11:27 UTC] a_ratz at mail dot 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! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 21:00:01 2025 UTC |
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!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!