Commit dca4d5d7 authored by Sascha Egerer's avatar Sascha Egerer Committed by Georg Ringer
Browse files

[TASK] Use normalized jpg_quality in GraphicalFunctions

If the setting 'processor_effects' is set the already normalized
value of jpg_quality should be used.

Change-Id: Idcebd8dfeadbc0c85e756281ed3ba05f8f9b965c
Resolves: #79428
Releases: master
Reviewed-on: https://review.typo3.org/51400

Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 47453763
......@@ -378,7 +378,7 @@ class GraphicalFunctions
$this->NO_IM_EFFECTS = 0;
$this->V5_EFFECTS = 1;
if ($gfxConf['processor_effects'] > 0) {
$this->cmds['jpg'] = $this->cmds['jpeg'] = '-colorspace ' . $this->colorspace . ' -quality ' . (int)$gfxConf['jpg_quality'] . $this->v5_sharpen(10);
$this->cmds['jpg'] = $this->cmds['jpeg'] = '-colorspace ' . $this->colorspace . ' -quality ' . $this->jpegQuality . $this->v5_sharpen(10);
}
}
// Secures that images are not scaled up.
......
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