in reply to Cropping Images using Image::Magick

Could it be that it's a GIF?, Maybe it's not compressing it and the other browsers aren't recognizing the encoding. I'd try a JPEG to determine if this is the problem.

From Imagemagick docs
Note that since Unisys claims a patent on the LZW algorithm (expiring in 2003) used by GIF, ImageMagick binary distributions do not include support for the LZW algorithm so GIF files are written uncompressed. Users are recommended to use the PNG or JPEG formats instead, and should consult the Unisys LZW web page before enabling LZW support.

-Lee

"To be civilized is to deny one's nature."
  • Comment on Re: Cropping Images using Image::Magick

Replies are listed 'Best First'.
Re: Re: Cropping Images using Image::Magick
by newrisedesigns (Curate) on Oct 03, 2002 at 03:26 UTC

    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

      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."