in reply to resize gif using ImageMagick
You should either open & close the file and pass ImageMagick the filehandle, or you give ImageMagick only the filename.
From the Docs:
$x = $image->Write('x.png'); warn "$x" if "$x";
In Section
Seekers of Perl Wisdom