1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 17:19:56 +02:00

Added compression to generated PNG thumbnails. Additional module configurations added to e107.htaccess

This commit is contained in:
Cameron
2016-02-07 10:53:15 -08:00
parent b182f463cb
commit 831ef22ad9
3 changed files with 26 additions and 4 deletions

View File

@@ -986,7 +986,7 @@ class GdThumb extends ThumbBase
{
header('Content-type: image/png');
}
imagepng($this->oldImage);
imagepng($this->oldImage, null, 9); // modified by e107
break;
}
@@ -1073,7 +1073,7 @@ class GdThumb extends ThumbBase
imagejpeg($this->oldImage, $fileName, $this->options['jpegQuality']);
break;
case 'PNG':
imagepng($this->oldImage, $fileName);
imagepng($this->oldImage, $fileName, 9); // modified by e107
break;
}