From: Cash Costello Date: Mon, 22 Feb 2010 00:39:14 +0000 (+0000) Subject: added some comments to help people who look at convert command line X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5fe18f0778902fa6c0541b99d988415ae921a4ca;p=lorea%2Felgg.git added some comments to help people who look at convert command line --- 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 +?>