From fe7182404fb4d8253086c35537352bcdcfad2057 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 17 Mar 2012 22:28:23 +1100 Subject: [PATCH] Better thumbnailing with `convert`. --- inc/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/image.php b/inc/image.php index 51dccfb4..40f2aa34 100644 --- a/inc/image.php +++ b/inc/image.php @@ -247,7 +247,7 @@ $quality = $config['thumb_quality'] * 10; - if(shell_exec("convert -flatten -filter Point -resize {$this->width}x{$this->height} -quality {$quality} " . escapeshellarg($this->src . '[0]') . " " . escapeshellarg($this->temp))) + if(shell_exec("convert -flatten -antialias -filter Point -scale {$this->width}x{$this->height} -quality {$quality} " . escapeshellarg($this->src . '[0]') . " " . escapeshellarg($this->temp))) error('Failed to resize image!'); } }