Issue Bug Closed

#81700Images get sharpend even if [GFX][processor_effects] is set to -1

Klaus Moser 06/26/17, 11:50 updated 10/02/18, 10:58

Description

In the current 8.7.2 version images are sharpened even if [GFX][processor_effects] is set to -1 (Do not sharpen images by default).

The reason for that is a wrong if condition in typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php on line 371.

is:

if ($gfxConf['processor_effects']) {
    $this->NO_IM_EFFECTS = 0;
    $this->cmds['jpg'] .= $this->v5_sharpen(10);
    $this->cmds['jpeg'] .= $this->v5_sharpen(10);
}

should be:

if ($gfxConf['processor_effects'] > 0) {
    $this->NO_IM_EFFECTS = 0;
    $this->cmds['jpg'] .= $this->v5_sharpen(10);
    $this->cmds['jpeg'] .= $this->v5_sharpen(10);
}

Reviews 2