#78600Replace getimagesize() by \TYPO3\CMS\Core\Type\File\ImageInfo()
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(),
);