diff options
author | Cash Costello <cash.costello@gmail.com> | 2010-02-22 00:39:14 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2010-02-22 00:39:14 +0000 |
commit | 5fe18f0778902fa6c0541b99d988415ae921a4ca (patch) | |
tree | c4cd3c3028aebe3b22242c0ecfb3f17001c003ba /lib/resize.php | |
parent | 3c6ab131a1a843b595a1d4385c828f8b356a8000 (diff) | |
download | elgg-5fe18f0778902fa6c0541b99d988415ae921a4ca.tar.gz elgg-5fe18f0778902fa6c0541b99d988415ae921a4ca.tar.bz2 |
added some comments to help people who look at convert command line
Diffstat (limited to 'lib/resize.php')
-rw-r--r-- | lib/resize.php | 4 |
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 +?> |