Skip to content

Commit

Permalink
[BUGFIX] Do not sharpen images if GFX/processor_effects is -1
Browse files Browse the repository at this point in the history
Sharpen images only if the install tool setting GFX/processor_effects is
set to 1 and not if it is set to 0 or -1

Resolves: #81700
Releases: 8.7
Change-Id: I0eab123720741b2f965bf9fc3767914ce46aaba0
Reviewed-on: https://review.typo3.org/56494
Reviewed-by: Stephan Großberndt <stephan.grossberndt@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
  • Loading branch information
Guido Schmechel authored and NeoBlack committed May 4, 2018
1 parent 3356787 commit d6ca05c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
Expand Up @@ -368,7 +368,7 @@ public function init()
$this->cmds['jpg'] = $this->cmds['jpeg'] = '-colorspace ' . $this->colorspace . ' -quality ' . $this->jpegQuality;

// ... but if 'processor_effects' is set, enable effects
if ($gfxConf['processor_effects']) {
if ($gfxConf['processor_effects'] === 1) {
$this->NO_IM_EFFECTS = 0;
$this->cmds['jpg'] .= $this->v5_sharpen(10);
$this->cmds['jpeg'] .= $this->v5_sharpen(10);
Expand Down

0 comments on commit d6ca05c

Please sign in to comment.