If you're using GD, that is a matter of GD, which doesn't support GIFs due to historical patent issues (presumably does again in new versions but hosts don't have those). ImageMagick works fine.
Well, the file doesn't support GIFs because the versions of GD I've had didn't. So ImageMagick is required for GIFs for now, will add GD GIF support for 3.2.
Sorry Paul, I just realized that GD thumbnails does not work in my other scrips anymore. So you are right. GD does not support GIF anymore, because the packing algorithm in GIF is copyrighted.
Actually the patent has expired everywhere now, so I expect it's back in current GD releases, releases that get bundled with PHP just tend to be old (and hosts tend to use old PHP versions). Have already made the change for 3.2, it can't do any harm.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Thumbnail and gif
Member
Usergroup: Customer
Joined: Oct 24, 2004
Location: Sweden
Total Topics: 5
Total Comments: 12
Possible bug or perhaps not implemented:
I cannot show uploaded gif-files as thumbnails. It works OK for jpg and png.
I use this:
<?php if (strstr("gif jpg png", extension("{LINKFILETITLE}"))) { ?> <a href="download.php?id={LINKID}"><img src="thumbnail.php?id={LINKID}&thumbwidth=100&thumbheight=100" border="0" alt="click for full size version"></a> <?php } ?>
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If you're using GD, that is a matter of GD, which doesn't support GIFs due to historical patent issues (presumably does again in new versions but hosts don't have those). ImageMagick works fine.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Well, the file doesn't support GIFs because the versions of GD I've had didn't. So ImageMagick is required for GIFs for now, will add GD GIF support for 3.2.
Member
Usergroup: Customer
Joined: Oct 24, 2004
Location: Sweden
Total Topics: 5
Total Comments: 12
Sorry Paul,
I just realized that GD thumbnails does not work in my other scrips anymore.
So you are right. GD does not support GIF anymore, because the packing algorithm in GIF is copyrighted.
Don't add GD GIF support for 3.2.
I'll install Image Magick instead.
Thanks
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Actually the patent has expired everywhere now, so I expect it's back in current GD releases, releases that get bundled with PHP just tend to be old (and hosts tend to use old PHP versions). Have already made the change for 3.2, it can't do any harm.