in reply to Re: Cropping Images using Image::Magick
in thread Cropping Images using Image::Magick

I changed the output to JPEG, and it works fine.

my $o = new Image::Magick; $o->Read("$tempfile"); # Geometry=>'300x200"+"115"+"256', # x=>115, y=>256, width=>300, height=>200, $o->Crop(geometry=>"300x200+115+256!"); $o->Write(filename=>"$outfile", compression=>"jpeg");

Thanks for your help.

John J Reiser
newrisedesigns.com

Replies are listed 'Best First'.
Re: Re: Re: Cropping Images using Image::Magick
by shotgunefx (Parson) on Oct 03, 2002 at 03:32 UTC
    Your welcome. I think I was bitten by this myself one time.

    Just another piece of obscure image trivia. Occassional encodings of PNGs can make NT 4 lock solid. Nothing to do but pull the plug. From my understanding NT 4 is way down but because of being bitten I prefer to use JPEG encoding to PNG in commercial sites.

    -Lee

    "To be civilized is to deny one's nature."