Re: gif support not in GD 2.01?
| From: | Jaakko Hyvätti | Date: | Wed, 03 Sep 2003 05:21:53 +0000 |
| Subject: | Re: gif support not in GD 2.01? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161518@lists.php.net to get a copy of this message | ||
Hi!
On Mon, 1 Sep 2003, Merlin wrote:
> I have included a imagecreatefromgif() into my code which runns pretty
> fine on my testsystem 4.3.3
>
> Now I uploaded it to the live system where an older version is running
> and is build with GD2.0.1. This is causing an error. Is this function
> not included inside the gd version?
No, it is not included in gd any more. You have two options:
- Enable the php internal gd implementation when you compile php. It
includes read support for gif. Note that if you use mod_perl within the
same apache server you cannot use the internal implementation as it would
conflict with the external library used by perl GD module.
- Patch your gd to include gif support, for example with patches from
here: http://www.iki.fi/hyvatti/sw/ or here: http://www.rime.com.au/gd/
Now compile your php with this.
Google for 'gd patch patent gif' for these answers.
Jaakko
--
Foreca Ltd Jaakko.Hyvatti@foreca.com
Pursimiehenkatu 29-31 B, FIN-00150 Helsinki, Finland http://www.foreca.com