optionally run jpegoptim on newly created thumbs
This commit is contained in:
parent
f61b4b3fcb
commit
1daf0416bd
@ -116,6 +116,10 @@ class PixelFileHandler extends DataHandlerExtension {
|
|||||||
|
|
||||||
log_debug('handle_pixel', "Generating thumnail with command `$cmd`, returns $ret");
|
log_debug('handle_pixel', "Generating thumnail with command `$cmd`, returns $ret");
|
||||||
|
|
||||||
|
if($config->get_bool("thumb_optim", false)) {
|
||||||
|
exec("jpegoptim $outname", $output, $ret);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// }}}
|
// }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user