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 #1

Updated by Riccardo De Contardi over 7 years ago

  • Category set to Code Cleanup
Actions #2

Updated by Markus Klein about 6 years ago

  • Category changed from Code Cleanup to Image Generation / GIFBUILDER
  • Status changed from New to Accepted
  • Assignee set to Markus Klein
  • Complexity set to no-brainer

Should also get a fallback to GD if IM/GM are not available.

Actions #3

Updated by Markus Klein about 6 years ago

  • Related to Feature #20107: Image Resizing / Thumbnails with GD2 instead of ImageMagick added
Actions #4

Updated by Gerrit Code Review about 6 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56622

Actions #5

Updated by Gerrit Code Review about 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56622

Actions #6

Updated by Gerrit Code Review about 6 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56724

Actions #7

Updated by Gerrit Code Review about 6 years ago

Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56724

Actions #8

Updated by Markus Klein about 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Gerrit Code Review almost 6 years ago

  • Status changed from Resolved to Under Review

Patch set 3 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56724

Actions #10

Updated by Gerrit Code Review almost 6 years ago

Patch set 4 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56724

Actions #11

Updated by Gerrit Code Review almost 6 years ago

Patch set 5 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56724

Actions #12

Updated by Gerrit Code Review almost 6 years ago

Patch set 6 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56724

Actions #13

Updated by Markus Klein almost 6 years ago

  • Status changed from Under Review to Resolved
Actions #14

Updated by Anja Leichsenring almost 6 years ago

  • Related to Bug #85064: the Class PathUtility cannot be found in SearchController.php on line 680 added
Actions #15

Updated by Stephan Großberndt over 5 years ago

  • Related to Bug #85901: Bug #66827 happen again with GraphicsMagic and typo3 8.7.18 added
Actions #16

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF