Bug #17912 Updated: getting info from gd.so
| From: | rasmus@php.net | Date: | Fri, 21 Jun 2002 19:57:41 +0000 |
| Subject: | Bug #17912 Updated: getting info from gd.so | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11741@lists.php.net to get a copy of this message | ||
ID: 17912
Updated by: rasmus@php.net
Reported By: tit.petric@telemach.net
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: linux debian/mandrake
PHP Version: 4.2.1
New Comment:
phpinfo() does show the GD version. Between versions 1.6 and 1.8 there
was no way to distinguish, so it is approximate, but other versions
should be shown just fine. As for figuring out which image types are
available, use imagetypes()
Previous Comments:
------------------------------------------------------------------------
[2002-06-21 15:54:39] tit.petric@telemach.net
im having trouble determinating to which version of GD gd.so was linked
to, phpinfo() only shows the acctual version of gd.so, but not the
version of GD it was linked to..
some variable to show the acctual gd version (major and minor) would be
nice, so i and other people would know how to dynamically use image*
functions according to that variable, because setting up each server
with platform-dependant code is a bit time consuming, and coding two
different image libraries or graphing libraries which use GD is also a
waste of time, if just a few functions change their names and
behaviour.
example would be..
if ($GD_VERSION=='1') {
imagecopyresized(...);
} else {
imagecopyresampled(...);
}
be a sweetheart and add that :* (otherwise excelent work)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17912&edit=1