IM memory limit broken?
git-svn-id: file:///home/shish/svn/shimmie2/trunk@229 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
4364e5079f
commit
56d63355dd
2 changed files with 4 additions and 2 deletions
|
@ -101,7 +101,8 @@ class ImageIO extends Extension {
|
|||
$q = $config->get_int("thumb_quality");
|
||||
$mem = $config->get_int("thumb_max_memory") / 1024 / 1024; // IM takes memory in MB
|
||||
|
||||
exec("convert {$inname}[0] -limit memory {$mem} -geometry {$w}x{$h} -quality {$q} jpg:$outname");
|
||||
// "-limit memory $mem" broken?
|
||||
exec("convert {$inname}[0] -geometry {$w}x{$h} -quality {$q} jpg:$outname");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,8 @@ class RegenThumb extends Extension {
|
|||
case 'convert':
|
||||
if(file_exists($f_thumb)) unlink($f_thumb);
|
||||
$mem = $config->get_int("thumb_max_memory") / 1024 / 1024; // IM takes memory in MB
|
||||
exec("convert {$f_image}[0] -limit memory {$mem} -geometry {$w}x{$h} -quality {$q} jpg:$f_thumb");
|
||||
// "-limit memory $mem" broken?
|
||||
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