diff --git a/ext/handle_pixel/main.php b/ext/handle_pixel/main.php index c6779247..cd82160f 100644 --- a/ext/handle_pixel/main.php +++ b/ext/handle_pixel/main.php @@ -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; } // }}}