mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 18:01:31 +02:00
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
This commit is contained in:
+1
-1
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user