Project

General

Profile

Actions

Task #78600

closed

Replace getimagesize() by \TYPO3\CMS\Core\Type\File\ImageInfo()

Added by Frans Saris over 7 years ago. Updated over 5 years ago.

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(),
                );

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Feature #78590: Custom backend logo: width and size for svg filesClosedJosef Glatz2016-11-07

Actions
Related to TYPO3 Core - Feature #20107: Image Resizing / Thumbnails with GD2 instead of ImageMagickRejected2009-02-28

Actions
Related to TYPO3 Core - Bug #85064: the Class PathUtility cannot be found in SearchController.php on line 680ClosedAnja Leichsenring2018-05-22

Actions
Related to TYPO3 Core - Bug #85901: Bug #66827 happen again with GraphicsMagic and typo3 8.7.18Closed2018-08-20

Actions
Actions

Also available in: Atom PDF