forum.coppermine-gallery.net

No Support => General discussion (no support!) => Topic started by: universalist on January 16, 2005, 03:16:39 am

Title: Uploading GIFs
Post by: universalist on January 16, 2005, 03:16:39 am
I just installed Coppermine, and i liked it very much.
Then i wanted to upload a GIF and it said GDlib wouldnt support GIF.
I have used GDlib before, and i know that older versions (which most people use up to now) just cantwrite GIFs.

So reading and archiving GIFs should be no problem.
I did a quick hack (introducing the "imagecreatefromgif"-function; passing by all "GD can only handle JPG & PNG images"-parts) and  -
Voila Coppermine did handle GIFs without problems.

Of course it doesn't create GIF-thumbs now, but at least it creates Thumbs from it.

Attached you find the files i changed.
Have Fun.
Title: Re: Uploading GIFs
Post by: Joachim Müller on January 16, 2005, 05:50:44 am
see http://forum.coppermine-gallery.net/index.php?topic=9407.0

Joachim
Title: Re: Uploading GIFs
Post by: universalist on January 16, 2005, 04:01:32 pm
Of course, i found the mod you mentioned too.
But it claims to appliy only to GDlib Versions newer than 2.0.28.

Many people (like me) may still be bound to use older GDlib-versions.
Why shouldnt they be able to process GIFs?

By the way: The mod you mentioned seems very stupid to me.
All this mod seems to do is reenabling gif-read-support (which was existant in GDlib all the time).
This would have been possible all the last years and doesnt need GDlib 2.0.28.

It's like: "Because we can write GIF now,we can read GIF now." or "Because cars are allowed to go 100mph now, OUR cars can now go 50mph instead of 30"

If you dont believe me look for "imagegif", the function for creating GIF's. It's not mentioned in the Code of the mod, but is THE function the change in GDlib 2.0.28 applies to.

Regards...
Title: Re: Uploading GIFs
Post by: kegobeer on January 16, 2005, 05:35:53 pm
php.net clearly states imagecreatefromgif and imagegif functions were removed because of the patent issues.

[edit]
Actually it just says the functions were removed.  You have to go to www.boutell.com/gd to read about the patent issues.
[/edit]