[BUGFIX] Do not sharpen images if GFX/processor_effects is -1 94/56494/4
authorGuido Schmechel <littlegee@web.de>
Fri, 30 Mar 2018 23:45:54 +0000 (01:45 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 4 May 2018 11:12:36 +0000 (13:12 +0200)
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>
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php

index 54ec0a2..48d45d1 100644 (file)
@@ -368,7 +368,7 @@ class GraphicalFunctions
         $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);