Project

General

Profile

Actions

Bug #103108

closed

Undefined index: processor_stripColorProfileCommand

Added by Mike Street 9 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2024-02-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Before 11.5.35, processor_stripColorProfileCommand existed as a predefined string. This has now been removed in favour of a safer processor_stripColorProfileParameters.

processor_stripColorProfileCommand can still be defined and used in the code (by the looks of things), however, we were previously appending to it and now get an Undefined index: when running our sites.

We were appending with:

$GLOBALS['TYPO3_CONF_VARS']['GFX']['processor_stripColorProfileCommand'] .= ' -quality ' . $GLOBALS['TYPO3_CONF_VARS']['GFX']['jpg_quality'] . '% -sampling-factor 2x2,1x1,1x1';

It's also worth noting our command is also now missing +profile \'*\' at the start.

I appreciate this default needed to be removed so the array params took precedence. I'm happy to update the code - more raising it for visibility.

Related changelog: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.5.x/Important-102799-TYPO3_CONF_VARSGFXprocessor_stripColorProfileParametersOptionAdded.html

Actions

Also available in: Atom PDF