Uploading GIFs Uploading GIFs
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Uploading GIFs

Started by universalist, January 16, 2005, 03:16:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

universalist

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.

Joachim Müller


universalist

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...

kegobeer

#3
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]
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots