QUOTED_MESSAGE: > On Tue, Sep 06, 2005 at 05:32:20PM -0700, Greg Krieser > wrote: [SNIP] > > Do you get an empty file, or no file at > all? > > Does your installed Imager have GIF configured? To > test this run: > > perl -MImager -le 'print for keys > %Imager::formats' > > and see if gif is listed. > > I ran the following script: > > #!perl -w > use strict; > use Imager; > > my $in = shift; > my $out = shift > or die "Usage: $0 input > output\n"; my $img = Imager->new; > $img->read(file=>$in) > or die "Cannot read $in: > ",$img->errstr,"\n"; my $scaled = > $img->scale(xpixels=>100); $scaled->write(file=>$out, > type=>'gif') > or die "Cannot write $out: > ",$scaled->errstr,"\n"; > > which produced a resized GIF image when I tested > it.
EKKI skrifa neitt hér:
© 2000-2002 Bjarni R. Einarsson / fyrirspurnir / skilmálar / þakkir /