emilford has asked for the wisdom of the Perl Monks concerning the following question:
When I run this it crashes automatically with the error:sub convert_images { my ($array) = (shift); foreach my $picture (@$array) { # read the image via a filehandle my $image = Image::Magick->new; open(IMAGE, "$picture"); $image->Read(file=>\*IMAGE); close(IMAGE); # resize the image to the correct width and height $image->Resize(geometry=>'450X300'); # write the image back to disk $image->Write(filename=>"$picture", compression=>'None'); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Image::Magick resize question
by Zaxo (Archbishop) on Jun 08, 2002 at 07:58 UTC | |
by emilford (Friar) on Jun 08, 2002 at 13:15 UTC | |
by merlyn (Sage) on Jun 08, 2002 at 14:17 UTC | |
by mt2k (Hermit) on Jun 08, 2002 at 22:32 UTC | |
by Aristotle (Chancellor) on Jun 08, 2002 at 22:51 UTC | |
by emilford (Friar) on Jun 09, 2002 at 15:31 UTC | |
| |
|
Re: Image::Magick resize question
by emilford (Friar) on Jun 08, 2002 at 06:01 UTC |