Version 0.9.1 ()
------------------------------------------------------------------------
+ * Fix thumbnail generation for imageMagick when target image is
+ smaller than the target size, it should not be blown up
+ (garvinhicking)
+
* Fix spartacus plugin to not properly indicate updatable versions
of plugins (garvinhicking)
if ($fdim['mime'] == 'application/pdf') {
$cmd = escapeshellcmd($serendipity['convert']) . ' -antialias -flatten -scale '. serendipity_escapeshellarg($newSize) .' '. serendipity_escapeshellarg($infile) .' '. serendipity_escapeshellarg($outfile . '.png');
} else {
- $cmd = escapeshellcmd($serendipity['convert']) . ' -antialias -scale '. serendipity_escapeshellarg($newSize) .' '. serendipity_escapeshellarg($infile) .' '. serendipity_escapeshellarg($outfile);
+ $newSize .= '>'; // Tell imagemagick to not enlarge small images
+ $cmd = escapeshellcmd($serendipity['convert']) . ' -antialias -resize '. serendipity_escapeshellarg($newSize) .' '. serendipity_escapeshellarg($infile) .' '. serendipity_escapeshellarg($outfile);
}
exec($cmd, $output, $result);
if ( $result != 0 ) {