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:
shish 2007-07-01 18:12:19 +00:00
parent e8fb34c690
commit d3aa734e9d
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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);