aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-05-05 22:16:05 +0000
committerplegall <plg@piwigo.org>2009-05-05 22:16:05 +0000
commitf3cdd38fe4475361d96b019d60c273d47e749c7b (patch)
tree363ce0acaf8fc23629cddb53521cea2b322ef651 /admin
parent24ed6dab41616667ac990f0f2979c6b7082477bf (diff)
merge r3270 from branch 2.0 to trunk
feature 981 added: ability to set the compression level for thumbnail creation. git-svn-id: http://piwigo.org/svn/trunk@3271 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/thumbnail.php2
1 files changed, 1 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 );