Date: 03/31/01
- Next message: cynic <email protected>: "[PHP-DEV] PHP 4.0 Bug #6018 Updated: Concating columns in Ms Access 2000 - fatal error"
- Previous message: cynic <email protected>: "[PHP-DEV] PHP 4.0 Bug #6433 Updated: 'document contains no data' - error"
- Next in thread: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #10078 Updated: Problems with ImageCreate function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 10078
User Update by: a_ratz <email protected>
Status: Open
Bug Type: GD related
Description: Problems with ImageCreate function
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 <email protected>
Thanks!
Previous Comments:
---------------------------------------------------------------------------
[2001-03-31 10:54:47] a_ratz <email protected>
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 <email protected>
Thanks!
---------------------------------------------------------------------------
[2001-03-30 14:51:59] sniper <email protected>
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 <email protected>
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 <email protected>
Thanks!
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10078
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: cynic <email protected>: "[PHP-DEV] PHP 4.0 Bug #6018 Updated: Concating columns in Ms Access 2000 - fatal error"
- Previous message: cynic <email protected>: "[PHP-DEV] PHP 4.0 Bug #6433 Updated: 'document contains no data' - error"
- Next in thread: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #10078 Updated: Problems with ImageCreate function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

