aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-02-22 00:39:14 +0000
committerCash Costello <cash.costello@gmail.com>2010-02-22 00:39:14 +0000
commit5fe18f0778902fa6c0541b99d988415ae921a4ca (patch)
treec4cd3c3028aebe3b22242c0ecfb3f17001c003ba /lib
parent3c6ab131a1a843b595a1d4385c828f8b356a8000 (diff)
downloadelgg-5fe18f0778902fa6c0541b99d988415ae921a4ca.tar.gz
elgg-5fe18f0778902fa6c0541b99d988415ae921a4ca.tar.bz2
added some comments to help people who look at convert command line
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
+?>