#56276Centralize check if file is an image
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.