Project

General

Profile

Actions

Task #56276

closed

Centralize check if file is an image

Added by Alexander Stehlik over 10 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Backend API
Start date:
2014-02-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Task #90305: Centralize imagefile_ext, mediafile_ext and textfile_extClosedBenni Mack2020-02-03

Actions
Actions

Also available in: Atom PDF