GD function library problems

GD function library problems

am 24.01.2008 17:57:14 von Alan Bannister

------=_NextPart_000_009A_01C85EAA.2BD5EAF0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

I recently completed the development of a project that makes use of some of
the GD library of image functions. I used XAMPP as the development platform
on my own PC and then uploaded to my hosting companies 'live' server.



It was then that I found some of the GD image functions were not available
on their system, even though these functions have been around a long time,
and the hosting company appeared to offer a recently updated library.



Further investigation suggests this is a not uncommon problem and may be due
to there being two versions of the GD library - a 'bundled' one and an
external one.



This raises two important points. Firstly, does anyone on this list have
any up to date information on the background to this problem - in particular
any advice that can be passed on to hosting companies.



The second is a word of warning to anyone about to embark on a project that
makes use of these functions - first check the ones you want to use are
available from your hosting service.



I had particular problems with the imagerotate() function. Fortunately
someone has posted a user defined workaround that has got me out of trouble.
However, I can see from other discussion boards that other functions are
involved as well.



Any ideas?



Alan Bannister


------=_NextPart_000_009A_01C85EAA.2BD5EAF0--

Re: GD function library problems

am 24.01.2008 23:57:27 von dmagick

> Further investigation suggests this is a not uncommon problem and may be due
> to there being two versions of the GD library - a 'bundled' one and an
> external one.

This is mentioned on the website, http://php.net/gd :

Note: Since PHP 4.3 there is a bundled version of the GD lib. This
bundled version has some additional features like alpha blending, and
should be used in preference to the external library since its codebase
is better maintained and more stable.

So you shouldn't really need to do anything anymore for GD stuff to
work, it's part of php (unless the person compiling php explicitly
doesn't include it).

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php