Make imagemagick use the real size
See http://board.s9y.org/viewtopic.php?f=3&t=19427
This commit is contained in:
@@ -671,7 +671,7 @@ function serendipity_makeThumbnail($file, $directory = '', $size = false, $thumb
|
|||||||
if (!$force_resize && serendipity_ini_bool(ini_get('safe_mode')) === false) {
|
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 \>)
|
$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);
|
exec($cmd, $output, $result);
|
||||||
if ($result != 0) {
|
if ($result != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user