http://search.cpan.org/doc/LDS/GD-1.38/GD.pmВыдержки:
--------------------------------------------------
Alternatively, you may create a GD::Image object based on an existing image by providing an open filehandle, a filename, or the image data itself. The image formats automatically recognized and accepted are: PNG, JPEG, XPM and GD2. Other formats, including GIF, WBMP, and GD version 1, cannot be recognized automatically at this time.
---------------------------------------------------
---------------------------------------------------
$image = GD::Image->newFromGif($file)
$image = GD::Image->newFromGifData($data)
This works in exactly the same way as newFromGd() and newFromGdData, but use the GIF image format.
----------------------------------------------------