Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Uploading GIFs  (Read 4035 times)

0 Members and 1 Guest are viewing this topic.

universalist

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Uploading GIFs
« 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Uploading GIFs
« Reply #1 on: January 16, 2005, 05:50:44 am »

Logged

universalist

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Uploading GIFs
« Reply #2 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...
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Uploading GIFs
« Reply #3 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]
« Last Edit: January 16, 2005, 06:28:45 pm by kegobeer »
Logged
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
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.