aboutsummaryrefslogtreecommitdiff
path: root/actions/resize.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/resize.php')
-rw-r--r--actions/resize.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/resize.php b/actions/resize.php
index 1c3bf2bad..bcb2ba520 100644
--- a/actions/resize.php
+++ b/actions/resize.php
@@ -98,7 +98,7 @@
$im_path = "/usr/bin/";
}
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";
+ $command = $im_path . "convert \"$input_name\" -resize ".$newwidth."x".$newheight."^ -gravity center -extent ".$newwidth."x".$newheight." \"$output_name\"";
system($command);
return $output_name;