Commit 025209b2 authored by Benni Mack's avatar Benni Mack Committed by Markus Klein
Browse files

[TASK] Raise default jpg image quality to 85

DefaultConfiguration setting is 70 (default since 12 years), but the
FactoryConfiguration setting is set to "80" for new installations.

This change raises all image quality settings to "85" if not overridden
by any installation (= new installation in the last 10 years or not changed
via the install tool), as we don't have a big file size issue with JPGs anymore
and we don't have duplicates anymore
(due to FAL instead of uploads/pics/mypic_13.jpg) and the internet connections
got better.

Resolves: #82655
Releases: master
Change-Id: Ibcb38ece4038a414bfcae103463c727ed3cf65c0
Reviewed-on: https://review.typo3.org/54267


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frans Saris's avatarFrans Saris <franssaris@gmail.com>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
parent a7d63adc
......@@ -278,7 +278,7 @@ class GraphicalFunctions
/**
* @var int
*/
public $jpegQuality = 75;
public $jpegQuality = 85;
/**
* @var string
......@@ -346,7 +346,7 @@ class GraphicalFunctions
$this->cmds['png'] = '';
}
// Setting default JPG parameters:
$this->jpegQuality = MathUtility::forceIntegerInRange($gfxConf['jpg_quality'], 10, 100, 75);
$this->jpegQuality = MathUtility::forceIntegerInRange($gfxConf['jpg_quality'], 10, 100, 85);
$this->addFrameSelection = (bool)$gfxConf['processor_allowFrameSelection'];
if ($gfxConf['gdlib_png']) {
$this->gifExtension = 'png';
......
......@@ -37,7 +37,7 @@ return [
'processor_stripColorProfileByDefault' => true,
'processor_stripColorProfileCommand' => '+profile \'*\'',
'processor_colorspace' => 'RGB',
'jpg_quality' => 70,
'jpg_quality' => 85,
'png_truecolor' => true,
],
'SYS' => [
......
......@@ -41,9 +41,6 @@ return [
'FE' => [
'loginSecurityLevel' => 'rsa',
],
'GFX' => [
'jpg_quality' => '80',
],
'SYS' => [
'sitename' => 'New TYPO3 site',
],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment