Re: [PHP] Reading and using GIF files

From: Marek Kilimajer (kilimajer_at_webglobe.sk)
Date: 10/30/03


Date: Thu, 30 Oct 2003 14:53:25 +0100
To: BENARD Jean-philippe <jean-philippe.benard-renexter@renault.com>

BENARD Jean-philippe wrote:

> Hi,
>
> Now GD doesn't support GIF file format, how can I use imageXXX
> functions in order to resize/transform/... GIF files?
> Are there any tools transforming GIF to JPG/PNG/..?
>
Use image functions in this order:
imagecreatefromgif - read the gif file
imagecreate - this will hold your resized image
imagecopyresampled - from the gif source to the new image
imagepng/imagejpeg - output the resampled image as png/jpg