BenRussell
Programmer
Im am trying to resize an image (already on the server) to 120 pixels wide and 60 pixels high (120 x 60).
I am trying this right now (Note: '$realFile' is the path to the file including the filename):
And this does absolutely nothing to the file, but yields no errors either. - Ben
I am trying this right now (Note: '$realFile' is the path to the file including the filename):
Code:
# Load Image::Magick
use Image::Magick;
my($image, $status);
$image = new Image::Magick;
# Read the image
$status = $image->Read("$realFile");
if ($status) { print "Error: $status"; exit; }
# Resize the image
$image->Set(geometry=>'120x60');
# Save the image
$status = $image->Write("$realFile");
if ($status) { print "Error: $status"; exit; }
And this does absolutely nothing to the file, but yields no errors either. - Ben