Bug #83591
closed
GraphicsMagick + [GFX][processor_effects] = '0' is set to '-1' just by entering the Install Tool
Added by S P almost 7 years ago.
Updated about 6 years ago.
Sprint Focus:
On Location Sprint
Description
Whenever entering the Install Tool, the setting [GFX][processor_effects] is set to '-1'.
I started with the GraphicsMagick preset and altered the LocalConfiguration.php by hand, setting [GFX][processor_effects] to '0'. This works until I click again on the Install Tool module. Navigating within the Install Tool directly after changing the value, you have to re-enter the Install Tool completly.
I work-around this by setting the value in AdditionalConfiguration.php which takes precedence over LocalConfiguration.php, but ideally this should be fixed in the core.
Bug #81700 is probably related. I'm not sure if this happens with ImageMagick as well, because I only have access to GraphicsMagick in the setup where I encountered this.
Whoops, the unfinished sentence should read:
Navigating within the Install Tool directly after changing the value does not trigger the effect, you have to re-enter the Install Tool completly (which immediatly triggers it).
- Category set to Install Tool
- Related to Bug #81700: Images get sharpend even if [GFX][processor_effects] is set to -1 added
It's not a bug, it's a feature :-)
typo3\sysext\install\Classes\Service\SilentConfigurationUpgradeService.php checks if GraphicsMagick is active, and return -1 for processor_effects for GM:
if ((string)$currentProcessorValue !== '') {
if ($currentProcessorMaskValue != 0) {
$changedValues['GFX/processor_allowTemporaryMasksAsPng'] = 0;
}
if ($currentProcessorValue === 'GraphicsMagick') {
if ($currentProcessorEffectsValue != -1) {
$changedValues['GFX/processor_effects'] = -1;
}
}
}
This could be a historic decision because sharpen might not always be available to GM. The code is also active in the current master.
My two cents: We can remove this check, see current gm doc: http://www.graphicsmagick.org/GraphicsMagick.html#details-sharpen If a gm version does not support sharpen, you can disable this manually at processor_effects.
- Sprint Focus set to On Location Sprint
- Status changed from New to Under Review
- Assignee set to Marc Willmann
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF