Project

General

Profile

Actions

Bug #81700

closed

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

Added by Klaus Moser almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2017-06-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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);
}

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #83591: GraphicsMagick + [GFX][processor_effects] = '0' is set to '-1' just by entering the Install ToolClosedMarc Willmann2018-01-17

Actions
Related to TYPO3 Core - Bug #85059: Use int cast to prevent comparison failuresClosedFrank Nägler2018-05-22

Actions
Actions

Also available in: Atom PDF