http://qs1969.pair.com?node_id=865185


in reply to Resizing images with transparent background?

Alternately, if you can call out to the shell, you could use imagemagick's "convert."

system("convert", "-resize", "file.gif", "newfile.gif");

There are plenty of reasons you might not be able to or want to, but I thought I'd mention this just in case.

for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";

Replies are listed 'Best First'.
Re^2: Resizing images with transparent background?
by aquarium (Curate) on Oct 14, 2010 at 05:39 UTC
    like pobocks says, imagemagick is an alternative. it's a very nice alternative if you ever need to do more, e.g. composite images, many more formats, add text/borders/effects. good fun, and quick.
    the hardest line to type correctly is: stty erase ^H
      I did have reasons not to use ImageMagick, but it works damn well. And pretty simply too. It is a heavyweight though.