- or download this
use Image::Magick;
...
...
$newheight = ($height*$newwidth)/$width;
$image->Scale('width'=>$newwidth,'height'=>$newheight);
}
- or download this
# Adjust Resolution if necessary
$image->SetAttribute('units'=>'PixelsPerInch');
...
if ($xrez > 72 || $yrez > 72) {
$image->SetAttribute('density'=>'72x72');
}
- or download this
x-resolution is 300
y-resolution is 300
- or download this
x-resolution is 72
y-resolution is 72