Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


GIF Support for GD2

Posted on 2005-04-14
Medium Priority
Last Modified: 2013-12-13
Hi folks,

When a launch a phpinfo() on my sever, it gives that :
GD Support  enabled  
GD Version  bundled (2.0.15 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  

Although GIF Support is enabled, i can't execute functions like createimagefromgif()

I also read that there were existing GD2 libraries patched for GIF Support. But wher can i find one for Windows ?

Thanks a lot

Question by:jdbaranger
  • 5
  • 4
LVL 11

Accepted Solution

matt_mcswain earned 1000 total points
ID: 13787427
What version of php do you have?
GIF write support was taken out and then put with php4.3.9, then you probably need to upgrade.
Might as well upgrade to 4.3.11.
LVL 11

Expert Comment

ID: 13787429
That should say "put back in with 4.3.9"

Author Comment

ID: 13788436

My PHP version is 4.3.4.

If i upgrade to 4.3.9, do all my pages need some modifications ?
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 11

Expert Comment

ID: 13788450
No, as long as your php.ini settings are the same.
So just back it up by renaming it php.ini.bak or something and install the new version.
Then replace the new one that was installed with the backup.
Like I said, might as well go with the newest version of php4; being 4.3.11

Author Comment

ID: 13788458
Thanks a lot, that helps me much !
LVL 11

Expert Comment

ID: 13788464
No problem :)

Author Comment

ID: 13789978
OK, i did the upgrade and had no problem. All is OK now with php.
phpinfo() gives me the right 2.0.28 GD2 version.

Just a little question about these PHP versions :
Why do php.net propose 5.0.4 AND 4.3.11 versions ?
Are these versions compatible ?


LVL 11

Expert Comment

ID: 13793439
Not completely. php5 is pretty backwards compatible, but they broke backwards compatibility in a few areas such as a couple functions were slightly modified and objects are handled a little differently. -->http://www.php.net/manual/en/migration5.incompatible.php

If you're interested in Object Oriented Programming or XML, you might want to try 5. It was a huge advance in the OO capabilities for php and there's some cool new ways to handle XML. More than likely, upgrading wouldn't cause you any problems, but I can't say for sure.

They will continue to support php4 for awhile because php5 was just released less then a year ago. You can actually download and use php3 if you wanted....But I wouldn't! ;-)

Author Comment

ID: 13796667
Many thanks for these explanations.
Have a good week.  :-)

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question