Issue Bug Closed

#103108Undefined index: processor_stripColorProfileCommand

Mike Street 02/13/24, 11:06 updated 03/01/24, 10:10

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Chris Müller commented and changed status New Needs Feedback 02/13/24, 20:15

    There is no “processor_stripColorProfileCommand” default configuration available anymore:
    https://github.com/TYPO3/typo3/commit/07f7ceca7537423a0ce196c20c23d92d1c2a7681#diff-d7a98dbd38a8309e3c7f644a8c3708393e486f0c7a2fadc6151d9d5b6681548b

    So, you have to switch to the new processor_stripColorProfileParameters setting (or add the previous default to your setting instead of concatenating).

  2. Christian Kuhn commented and changed status Needs Feedback Closed 03/01/24, 10:10

    Hey. It looks as if there is nothing we can actually do here. It sounds as if the reporter opened the issue to raise additional awareness. I hope its ok to close here.