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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user