Actions
Task #78600
closedReplace getimagesize() by \TYPO3\CMS\Core\Type\File\ImageInfo()
Status:
Closed
Priority:
Should have
Assignee:
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2016-11-07
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:
Description
The php method getimagesize()
doesn't support all moderns file types like svg
that's why \TYPO3\CMS\Core\Type\File\ImageInfo()
was introduced.
Replace all getimagesize()
calls throughout the core to increase image support.
$imageInfo = GeneralUtility::makeInstance(FileType\ImageInfo::class, $fileNameAndPath); $imageDimensions = array( 'width' => $imageInfo->getWidth(), 'height' => $imageInfo->getHeight(), );
Actions