-
Bug
-
Resolution: Fixed
-
3.0.4
-
None
-
PHP Environment:
Database:
The current thumbnail generation somewhat aliased picture. Notice the fence pattern in the example shown below:
!http://farm1.static.flickr.com/65/205089332_29ff320723.jpg
A different call to ImageMagick convert produces a far better result:
!http://farm1.static.flickr.com/96/205089331_97257d105b.jpg
I propose replacing the line in function_posting.php:
@passthru(escapeshellcmd($config['img_imagick']) . 'convert' . ((defined('PHP_OS') && preg_match('#^win#i', PHP_OS)) ? '.exe' : '') . ' -quality 85 -antialias -sample] ' . $new_width . 'x' . $new_height . ' "' . str_replace('\\', '/', $source) . '" +profile "*" "' . str_replace('\\', '/', $destination) . '"');
|
with:
@passthru(escapeshellcmd($config['img_imagick']) . 'convert' . ((defined('PHP_OS') && preg_match('#^win#i', PHP_OS)) ? '.exe' : '') . ' -quality 85 -geometry ' . $new_width . 'x' . $new_height . ' "' . str_replace('\\', '/', $source) . '" "' . str_replace('\\', '/', $destination) . '"');
|
Thanks.