Browse Source

Better thumbnailing with `convert`.

pull/40/head
Michael Save 12 years ago
parent
commit
fe7182404f
  1. 2
      inc/image.php

2
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!');
}
}

Loading…
Cancel
Save