From 4d7292c50cfb57ed824b479026e4c9829a0b9473 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 5 May 2009 21:42:58 +0000 Subject: feature 981 added: ability to set the compression level for thumbnail creation. git-svn-id: http://piwigo.org/svn/branches/2.0@3270 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/thumbnail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin') 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 ); -- cgit v1.2.3