Crop and not change DPI
Posted: 2012-02-01T09:34:01-07:00
Hello. I am trying to crop images but not change the DPI.. Whgat I am seeing is an image is 200dpi and then after I perform the crop, the cropped output is 72 dpi.. My code looks like this...
my $imageCrop = $image->Clone();
$imageCrop->Crop( $pixelsWide . "x" . $pixelsHigh . "+" . abs($pixelsLeft) . "+" . abs($pixelsTop) );
$result = $imageCrop->Write("$TempDir$file");
This is having a huge impact for my process so any help would be appreicated.
Thanks, Scott.
my $imageCrop = $image->Clone();
$imageCrop->Crop( $pixelsWide . "x" . $pixelsHigh . "+" . abs($pixelsLeft) . "+" . abs($pixelsTop) );
$result = $imageCrop->Write("$TempDir$file");
This is having a huge impact for my process so any help would be appreicated.
Thanks, Scott.