Bug #17912 Updated: getting info from gd.so

From: Date: Mon, 24 Jun 2002 10:06:58 +0000
Subject: Bug #17912 Updated: getting info from gd.so
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11894@lists.php.net to get a copy of this message
ID: 17912 Updated by: tit.petric@telemach.net Reported By: tit.petric@telemach.net Status: Assigned Bug Type: GD related Operating System: linux debian/mandrake PHP Version: 4.2.1 Assigned To: derick New Comment: this will make function_exists("imagecreatetruecolor"); return true or false respectively, weather you have gd2.0 or not, correct? Previous Comments: ------------------------------------------------------------------------ [2002-06-24 05:30:53] derick@php.net Yup, and i'm almost done ... testing now :) ------------------------------------------------------------------------ [2002-06-24 04:02:56] sniper@php.net The fix would be to make the functions be only available when they are available..I guess that's what you're gonna do, Derick? ------------------------------------------------------------------------ [2002-06-21 16:33:34] tit.petric@telemach.net p.s. in case i wasnt clear... by "supporting both" i ment, not supporting each one seperately (a module for gd and a module for gd2) ------------------------------------------------------------------------ [2002-06-21 16:32:17] tit.petric@telemach.net well, that would only tell me which filetypes are supported, and not which functions, as you see copyimageresized() and copyimageresampled() are perfect examples of the differences between gd1 and gd2 (or advancements) more accurate comparison would be "imagecreate" in gd1 and "imagecreatetruecolor" in gd2 (note the first comment posted on http://www.php.net/manual/en/function.imagecolorallocate.php where it also specifies this difference) there are a lot of difference between gd1 and gd2 and this problem comes out of supporting both, since the api differs for each one. p.s. i tried to solve this problem with function_exists("imagecreatetruecolor") but that always returns true, and after i call it it says i need GD2.0 or higher (which is the truth) ------------------------------------------------------------------------ [2002-06-21 16:21:45] rasmus@php.net Why do you want the version? Isn't it the capabilities you are interested in? imagetypes() would give you that. The version tells you next to nothing since every version of GD can be compiled differently. ie. with or without ttf, png, jpg, gif, etc. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17912 -- Edit this bug report at http://bugs.php.net/?id=17912&edit=1

« previous php.bugs (#11894) next »