Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$image_file = Image::Magick -> new(); $result = $image_file -> Read($_[0]); ($mark_width, $mark_height, $mark_size, $mark_fmt) = $image_file -> Pi +ng($_[0]); if ( ($mark_height >= $mark_width) and ( $mark_height > 300) ){ $mark_width = sprintf("%.0f", ( ($mark_width * 300)/$mark_height ) + ) ; $mark_height=300; } $result = $image_file -> Scale(width=>$mark_width, height=> $mark_heig +ht); $result = $image_file -> Write("../new_file/$_[0]");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hard Times With ImageMagick
by hossman (Prior) on Dec 12, 2002 at 00:06 UTC | |
|
Re: Hard Times With ImageMagick
by ThingFish (Beadle) on Dec 12, 2002 at 15:41 UTC | |
|
Re: Hard Times With ImageMagick
by zentara (Cardinal) on Dec 12, 2002 at 14:37 UTC |