Re: FN-FORUM: Creating thumbnails
date posted 9th March 2006 17:14
On Thu, Mar 09, 2006 at 05:51:45PM -0000, Ray McGinty wrote:
>
> Hello All,
>
> I have built an image library application (PHP/MySQL) which customers
> use to upload pics to their sites within their CMS. It has a function
> thumbnail() (see code below) which converts the full-size image to a
> thumbnail for showing in the "gallery" view. The function uses NetPBM
> tools to do the image manipulation.
>
> I'm in the process of moving all my sites to a new server. The new
> server doesn't have NetPBM tools installed, but it does have the GD
> library. However I have read that GD does not support gif:
>
> >> (gd does not support GIF anymore, because the packing algorithm in
> >>GIF is copyrighted).
>
> Obviously my customers will want to use gif.
>
> Any idea how to get around this?
It will *read* gif but not write it. So someone can upload a gif, and you
write a .jpg thumb. You don't need to display the thumbnail in any particular
format do you ?
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
#include