aboutsummaryrefslogtreecommitdiff
path: root/lib/resize.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-07-11 00:58:19 +0000
committerCash Costello <cash.costello@gmail.com>2009-07-11 00:58:19 +0000
commitd19606b96ba0f5ed56e9e736b8fe88210528577c (patch)
treed8148ae40b56350cf23a74a503b2d759bd32d41d /lib/resize.php
parentef40f4101aa5653a6697a273806ed4d4537bc91e (diff)
downloadelgg-d19606b96ba0f5ed56e9e736b8fe88210528577c.tar.gz
elgg-d19606b96ba0f5ed56e9e736b8fe88210528577c.tar.bz2
I will probably regret this - opening up imagemagick command line to all
Diffstat (limited to 'lib/resize.php')
-rw-r--r--lib/resize.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resize.php b/lib/resize.php
index 8561e1f4a..a2c522eb8 100644
--- a/lib/resize.php
+++ b/lib/resize.php
@@ -527,7 +527,7 @@
}
if(substr($im_path, strlen($im_path)-1, 1) != "/") $im_path .= "/";
$command = $im_path . "convert \"$input_name\" -resize ".$newwidth."x".$newheight."^ -gravity center -extent ".$newwidth."x".$newheight." \"$output_name\"";
- system($command);
+ exec($command);
return $output_name;
}