diff options
Diffstat (limited to '')
-rw-r--r-- | admin/thumbnail.php | 2 | ||||
-rw-r--r-- | include/config_default.inc.php | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/admin/thumbnail.php b/admin/thumbnail.php index 586fda6bc..3034e8478 100644 --- a/admin/thumbnail.php +++ b/admin/thumbnail.php @@ -118,7 +118,7 @@ function RatioResizeImg($path, $newWidth, $newHeight, $tn_ext) array_push($page['errors'], '['.$tndir.'] : '.l10n('no_write_access')); return false; } - imagejpeg($destImage, $dest_file); + imagejpeg($destImage, $dest_file, $conf['tn_compression_level']); // freeing memory ressources imagedestroy( $srcImage ); imagedestroy( $destImage ); diff --git a/include/config_default.inc.php b/include/config_default.inc.php index 81fe7ef0f..f44bcd7b8 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -150,6 +150,10 @@ $conf['tn_width'] = 128; // tn_height : default height for thumbnails creation $conf['tn_height'] = 128; +// tn_compression_level: compression level for thumbnail creation. 0 is low +// quality, 100 is high quality. +$conf['tn_compression_level'] = 75; + // show_version : shall the version of Piwigo be displayed at the // bottom of each page ? $conf['show_version'] = true; |