aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/resize.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/resize.php b/lib/resize.php
index c35eb09ea..250511d66 100644
--- a/lib/resize.php
+++ b/lib/resize.php
@@ -534,6 +534,8 @@
$im_path = "/usr/bin/";
}
if(substr($im_path, strlen($im_path)-1, 1) != "/") $im_path .= "/";
+ // see imagemagick web site for explanation of these parameters
+ // the ^ in the resize means those are minimum width and height values
$command = $im_path . "convert \"$input_name\" -resize ".$newwidth."x".$newheight."^ -gravity center -extent ".$newwidth."x".$newheight." \"$output_name\"";
exec($command);
return true;
@@ -544,4 +546,4 @@
return false;
}
-?> \ No newline at end of file
+?>