make thumbnails be single frame jpegs
git-svn-id: file:///home/shish/svn/shimmie2/trunk@207 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
e8fb34c690
commit
d3aa734e9d
2 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ class ImageIO extends Extension {
|
|||
$h = $config->get_int("thumb_height");
|
||||
$q = $config->get_int("thumb_quality");
|
||||
|
||||
exec("convert $inname -geometry {$w}x{$h} -quality {$q} $outname");
|
||||
exec("convert {$inname}[0] -geometry {$w}x{$h} -quality {$q} jpg:$outname");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ class RegenThumb extends Extension {
|
|||
switch($program) {
|
||||
case 'convert':
|
||||
if(file_exists($f_thumb)) unlink($f_thumb);
|
||||
exec("convert $f_image -geometry {$w}x{$h} -quality {$q} $f_thumb");
|
||||
exec("convert {$f_image}[0] -geometry {$w}x{$h} -quality {$q} jpg:$f_thumb");
|
||||
break;
|
||||
case 'gd':
|
||||
$this->make_thumb_gd($f_image, $f_thumb);
|
||||
|
|
Reference in a new issue