Webmastersite.net
Register Log In

Thumbnail and gif
I cannot make thumbnail.php show gif-attachments

Comments on Thumbnail and gif

Dagge
Member

Usergroup: Customer
Joined: Oct 24, 2004
Location: Sweden

Total Topics: 5
Total Comments: 12
Dagge
Posted Jun 02, 2005 - 2:13 AM:

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 } ?>
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 02, 2005 - 11:27 PM:

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

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 03, 2005 - 5:22 AM:

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

Usergroup: Customer
Joined: Oct 24, 2004
Location: Sweden

Total Topics: 5
Total Comments: 12
Dagge
Posted Jun 03, 2005 - 5:43 AM:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 03, 2005 - 9:05 AM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.