generating gifs

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Mr. Tech
Forum Contributor
Posts: 205
Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia

generating gifs

Post by Mr. Tech »

Does anyone know of some code or tutorial that will teach me how to generate a gif image without using GD?

Thanks!
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Can you possibly use a PNG file instead of a GIF?

Mac
Mr. Tech
Forum Contributor
Posts: 205
Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia

Post by Mr. Tech »

Unfortunately no... Is there another way?
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

I was also curious
we can generate one frame image but how to make many frame images ...
Last edited by devork on Thu Oct 23, 2003 7:06 am, edited 1 time in total.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

there are other api that support gifs, e.g. http://pecl.php.net/package/imagick and from the imagemagick site:
Note that since Unisys claims a patent on the LZW algorithm (expiring world-wide as of June 2004) used by GIF, ImageMagick binary distributions do not include support for the LZW algorithm so GIF files are written uncompressed. Users are recommended to use the PNG or JPEG formats instead, and should consult the Unisys LZW web page before enabling LZW support.
that's better than nothing, isn't it? ;)
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

ok I also heard about some kind of license problem
so support for gif was not available in 1.8 and on ward
..?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

If you refer to GD: yes, gif write support is disabled in recent versions,
but imagemagick != gd
Post Reply