optionally run jpegoptim on newly created thumbs

This commit is contained in:
Shish 2012-06-23 22:52:47 +01:00
parent f61b4b3fcb
commit 1daf0416bd

View File

@ -116,6 +116,10 @@ class PixelFileHandler extends DataHandlerExtension {
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;
}
// }}}