From 5fe18f0778902fa6c0541b99d988415ae921a4ca Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Mon, 22 Feb 2010 00:39:14 +0000 Subject: added some comments to help people who look at convert command line --- lib/resize.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/resize.php') 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 +?> -- cgit v1.2.3