(none) imager-devel
/ help / lists / applications / search /
 

Resizing .gif Graphics

From: Greg Krieser (
14792@xyz.molar.is)
Date: Wed 07 Sep 2005 - 00:32:20 GMT

  • Next message: Tony Cook: "Re: Resizing .gif Graphics"

    Is it possible to resize .gif files just like .jpg files? I've used .jpg resizing without any trouble, but using the same approach with .gif does not work (no error messages, just no results). Any suggestions?
     
    $img=Imager->new();
    $img->open(file=>'/path_to.gif',type=>'gif') || print "failed: ",$img->{ERRSTR},"\n";
    $width=$img->getwidth();
    if ($width > 250) {
    $scaled=$img->scale(xpixels=>250);
    $scaled->write(file=>'/path_to_resized.gif',type=>'gif') || print "failed: ",$scaled->{ERRSTR},"\n";
     
    Thank You,
     
    Greg

    Attachments:
     + http://www.molar.is/en/lists/imager-devel/2005-09/1e3723a4/01.unnamed.html



  •