Better thumbnailing with convert.

This commit is contained in:
Michael Save 2012-03-17 22:28:23 +11:00
parent e6337640c8
commit fe7182404f

View File

@ -247,7 +247,7 @@
$quality = $config['thumb_quality'] * 10; $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!'); error('Failed to resize image!');
} }
} }