Issue Task Closed

#56276Centralize check if file is an image

Alexander Stehlik 02/25/14, 15:52 updated 03/08/20, 10:33

Description

Currently the check if a file is an image is done on various places in the core, always using the same code:

$isImage = GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], $fileExtension);

It would make sense to centralize this check and maybe optimize the performance.

Reviews 0

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