[PHP] Read-only gif support in 4.3.0
I read on PHP.net that PHP 4.3.0 has read-only GIF support in it's version of gdlib. I am using the windows version with apache and tried both php_gd.dll and php_gd2.dll and I could not access any GIF related image functions, however I could use JPG, PNG, etc. Does anyone know if I need to do anything special to get those functions to work? The function I am mainly needing to use is imagecreatefromgif(). Thanks -Adam
Re: [PHP] Read-only gif support in 4.3.0
I just installed 4.3 today... configured as ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mcrypt --with-zlib - -with-gd --enable-exif --with-jpeg-dir=/usr/lib --with-png --with-ttf --with-fre etype --enable-gd-native-ttf I run this code: and it works fine Mike *** REPLY SEPARATOR *** On 04/01/2003 at 4:50 PM Adam Plocher wrote: >This encoded message has been converted to an attachment. > >I read on PHP.net that PHP 4.3.0 has read-only GIF support in it's version >of gdlib. I am using the windows version with apache and tried both >php_gd.dll and php_gd2.dll and I could not access any GIF related image >functions, however I could use JPG, PNG, etc. Does anyone know if I need >to do anything special to get those functions to work? The function I am >mainly needing to use is imagecreatefromgif(). > > > >Thanks > >-Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Read-only gif support in 4.3.0
Michael, thanks for the response.. Only prob is I'm using the win32 precompiled version.. I got a couple linux boxes I could throw this on I suppose, but I was kind of hoping to use this machine as a dev box. I ran the same code you posted and these were my results: Fatal error: Call to undefined function: imagecreatefromgif() in c:\apache\htdocs\test.php on line 14 I don't get it - there are two gd dll's that come with it and I've tried both. Any other advice would be appreciated. Thanks -Adam -Original Message- From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]] Sent: Sat 1/4/2003 5:58 PM To: Adam Plocher; [EMAIL PROTECTED] Cc: Subject: Re: [PHP] Read-only gif support in 4.3.0 I just installed 4.3 today... configured as ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mcrypt --with-zlib - -with-gd --enable-exif --with-jpeg-dir=/usr/lib --with-png --with-ttf --with-fre etype --enable-gd-native-ttf I run this code: and it works fine Mike *** REPLY SEPARATOR *** On 04/01/2003 at 4:50 PM Adam Plocher wrote: >This encoded message has been converted to an attachment. > >I read on PHP.net that PHP 4.3.0 has read-only GIF support in it's version >of gdlib. I am using the windows version with apache and tried both >php_gd.dll and php_gd2.dll and I could not access any GIF related image >functions, however I could use JPG, PNG, etc. Does anyone know if I need >to do anything special to get those functions to work? The function I am >mainly needing to use is imagecreatefromgif(). > > > >Thanks > >-Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Read-only gif support in 4.3.0
when you do a phpinfo() what are the compiled with options? *** REPLY SEPARATOR *** On 04/01/2003 at 6:24 PM Adam Plocher wrote: >This encoded message has been converted to an attachment. > >Michael, thanks for the response.. > >Only prob is I'm using the win32 precompiled version.. I got a couple >linux boxes I could throw this on I suppose, but I was kind of hoping to >use this machine as a dev box. > >I ran the same code you posted and these were my results: > >Fatal error: Call to undefined function: imagecreatefromgif() in >c:\apache\htdocs\test.php on line 14 > >I don't get it - there are two gd dll's that come with it and I've tried >both. Any other advice would be appreciated. Thanks > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Read-only gif support in 4.3.0
There aren't any, however there is a GD section which says: GD Support enabled GD Version bundled (2.0 compatible) FreeType Supportenabled FreeType Linkagewith freetype JPG Support enabled PNG Support enabled WBMP Supportenabled Doesn't say anything about GIF =/. I looked in the php.ini file and didn't see anything relating to gif support, and there aren't any gif extensions in the php\extensions directory. Thx again. -Adam -Original Message- From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]] Sent: Sat 1/4/2003 6:34 PM To: Adam Plocher; [EMAIL PROTECTED] Cc: Subject: RE: [PHP] Read-only gif support in 4.3.0 when you do a phpinfo() what are the compiled with options? *** REPLY SEPARATOR *** On 04/01/2003 at 6:24 PM Adam Plocher wrote: >This encoded message has been converted to an attachment. > >Michael, thanks for the response.. > >Only prob is I'm using the win32 precompiled version.. I got a couple >linux boxes I could throw this on I suppose, but I was kind of hoping to >use this machine as a dev box. > >I ran the same code you posted and these were my results: > >Fatal error: Call to undefined function: imagecreatefromgif() in >c:\apache\htdocs\test.php on line 14 > >I don't get it - there are two gd dll's that come with it and I've tried >both. Any other advice would be appreciated. Thanks >
RE: [PHP] Read-only gif support in 4.3.0
Didn't I answer this already? The Windows binary was built without the right #define to enable the GIF support. You will have to wait for the next Windows build before this will work. -Rasmus On Sat, 4 Jan 2003, Adam Plocher wrote: > Michael, thanks for the response.. > > Only prob is I'm using the win32 precompiled version.. I got a couple linux boxes I >could throw this on I suppose, but I was kind of hoping to use this machine as a dev >box. > > I ran the same code you posted and these were my results: > > Fatal error: Call to undefined function: imagecreatefromgif() in >c:\apache\htdocs\test.php on line 14 > > I don't get it - there are two gd dll's that come with it and I've tried both. Any >other advice would be appreciated. Thanks > > -Adam > > -Original Message- > From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]] > Sent: Sat 1/4/2003 5:58 PM > To: Adam Plocher; [EMAIL PROTECTED] > Cc: > Subject: Re: [PHP] Read-only gif support in 4.3.0 > > > > > > I just installed 4.3 today... configured as > > ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mcrypt --with-zlib >- > -with-gd --enable-exif --with-jpeg-dir=/usr/lib --with-png --with-ttf >--with-fre > etype --enable-gd-native-ttf > > > I run this code: > > >header("Content-type: image/jpeg"); > >$img = imagecreatefromgif("../images/camera.gif"); >imagejpeg($img); >imagedestroy($img); > > > ?> > > and it works fine > > > Mike > > > > > *** REPLY SEPARATOR *** > > On 04/01/2003 at 4:50 PM Adam Plocher wrote: > > >This encoded message has been converted to an attachment. > > > >I read on PHP.net that PHP 4.3.0 has read-only GIF support in it's version > >of gdlib. I am using the windows version with apache and tried both > >php_gd.dll and php_gd2.dll and I could not access any GIF related image > >functions, however I could use JPG, PNG, etc. Does anyone know if I need > >to do anything special to get those functions to work? The function I am > >mainly needing to use is imagecreatefromgif(). > > > > > > > >Thanks > > > >-Adam > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Read-only gif support in 4.3.0
If I look at my phpinfo I get: gd GD Support enabled GD Version bundled (2.0 compatible) FreeType Support enabled FreeType Linkage with TTF library GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled Notice the GIF Read Support Why dont you try and compile your own on Windoze Mike *** REPLY SEPARATOR *** On 04/01/2003 at 6:40 PM Adam Plocher wrote: >This encoded message has been converted to an attachment. > >There aren't any, however there is a GD section which says: > >GD Support enabled >GD Version bundled (2.0 compatible) >FreeType Support enabled >FreeType Linkage with freetype >JPG Supportenabled >PNG Supportenabled >WBMP Support enabled > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php