From 94881ba4c0e3bdd4b5fac510e93977e239171c1c Mon Sep 17 00:00:00 2001 From: onli Date: Wed, 10 Jul 2013 13:35:08 +0200 Subject: [PATCH] Make imagemagick use the real size See http://board.s9y.org/viewtopic.php?f=3&t=19427 --- include/functions_images.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_images.inc.php b/include/functions_images.inc.php index 82009998..e0c34eab 100644 --- a/include/functions_images.inc.php +++ b/include/functions_images.inc.php @@ -671,7 +671,7 @@ function serendipity_makeThumbnail($file, $directory = '', $size = false, $thumb if (!$force_resize && serendipity_ini_bool(ini_get('safe_mode')) === false) { $newSize .= '>'; // Tell imagemagick to not enlarge small images, only works if safe_mode is off (safe_mode turns > in to \>) } - $cmd = escapeshellcmd($serendipity['convert']) . ' -antialias -resize '. serendipity_escapeshellarg($newSize) .' '. serendipity_escapeshellarg($infile) .' '. serendipity_escapeshellarg($outfile); + $cmd = $cmd = escapeshellcmd($serendipity['convert']) . ' -antialias -resize '. serendipity_escapeshellarg($newSize) .'\! '. serendipity_escapeshellarg($infile) .' '. serendipity_escapeshellarg($outfile); } exec($cmd, $output, $result); if ($result != 0) {