Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.5

Bug #4111 Unable to create a new true color image @ImageCreateTrueColor()
Submitted: 2005-04-10 10:14 UTC
From: webmaster at detectomania dot com Assigned: jausions
Status: Closed Package: Image_Transform
PHP Version: 5.0.0 OS: Linux Debian
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 3 + 2 = ?

 
 [2005-04-10 10:14 UTC] webmaster at detectomania dot com
Description: ------------ Image_Transform 0.2 beta in driver GD.php line 332. Don´t Create a new true color image, because It can´t detect if the function "ImageCreateTrueColor" exists. //if(@ImageCreateTrueColor()){ I suggest replace it with this line: if(function_exists('ImageCreateTrueColor')){

Comments

 [2005-04-10 18:33 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-04-10 19:35 UTC] webmaster at detectomania dot com
hello again and sorry for my bad english. The bug exactly is in the "if" conditions that fails in PHP5 (bad counted parameters), not exactly in the "ImageCreateTrueColor()" function, because "if" statement doesn´t return TRUE as it should do because PHP5 comes with gd2 support. I have solved it with the "function_exists()". best regards Ricardo. My code suggested: if(function_exists('ImageCreateTrueColor')){ $new_img =ImageCreateTrueColor($new_x,$new_y); } else { $new_img =ImageCreate($new_x,$new_y); } if(function_exists('ImageCopyResampled')){ ImageCopyResampled($new_img, $this->imageHandle, 0, 0, 0, 0, $new_x, $new_y, $this->img_x, $this->img_y); } else { ImageCopyResized($new_img, $this->imageHandle, 0, 0, 0, 0, $new_x, $new_y, $this->img_x, $this->img_y); }
 [2005-04-28 04:35 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!