Page 1 of 1
Question about GD library.
Posted: Sat Dec 20, 2008 6:39 pm
by kaisellgren
Hi,
I'm working on with GD library. I started wondering that is PHP 5.1.2 >= always bundled with GD2+? Are there cases where GD version is below 2 with PHP 5.1.2 >= ?
Also, is it common to disable any of these on web servers?
Code: Select all
Freetype Support
GIF Read Support
GIF Create Support
JPG Support
PNG Support
WBMP Support
XBM Support
Re: Question about GD library.
Posted: Sun Dec 21, 2008 4:42 am
by Mark Baker
JPG is disabled by default unless you build PHP with --with-jpeg-dir pointing to the libjpeg source code
Freetype also needs to be built explicitly into PHP
Re: Question about GD library.
Posted: Sun Dec 21, 2008 7:55 am
by kaisellgren
Mark Baker wrote:JPG is disabled by default unless you build PHP with --with-jpeg-dir pointing to the libjpeg source code
Freetype also needs to be built explicitly into PHP
Hmm do you know that is GD version >= 2.0.28 in PHP 5?
Re: Question about GD library.
Posted: Sun Dec 21, 2008 8:37 am
by Mark Baker
kaisellgren wrote:Hmm do you know that is GD version >= 2.0.28 in PHP 5?
Can't recall off the top of my head.
I had to do a rebuild of PHP 5.2.5 in work last week to enable JPG in GD, but I won't be back in the office again till the new year.
On my servers at home I currently have GD 2.0.34 with PHP 5.2.6
Re: Question about GD library.
Posted: Sun Dec 21, 2008 8:41 am
by kaisellgren
Mark Baker wrote:kaisellgren wrote:Hmm do you know that is GD version >= 2.0.28 in PHP 5?
Can't recall off the top of my head.
I had to do a rebuild of PHP 5.2.5 in work last week to enable JPG in GD, but I won't be back in the office again till the new year.
On my servers at home I currently have GD 2.0.34 with PHP 5.2.6
Hmm. So the JPG/PNG/GIF/Freetype supports can not be assumed at all.. But I'm wondering if the GD 2 is always the version that PHP 5 uses... if anyone could confirm this?