[BUGFIX] Add imageMagickIdentify fallback to ImageInfo::getImageSizes() 68/38468/2
authorFrans Saris <franssaris@gmail.com>
Wed, 1 Apr 2015 20:32:44 +0000 (22:32 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 4 Apr 2015 11:05:45 +0000 (13:05 +0200)
commit856541b1c84e09eb340930e5414e2c6572f89cae
tree9e74e51d715c0bc2a1f75acb84da5ec08e4f2cf2
parent103da82c55596f9b2a6259fbe26d27b7a1d068b3
[BUGFIX] Add imageMagickIdentify fallback to ImageInfo::getImageSizes()

ImageInfo::getImageSizes() uses getimagesize() to determine the image dimensions. But for pdf and svg files this fails.

This patch add a fallback to GraphicalFunctions::imageMagickIdentify()
when getimagesize() doesn't give any results.

This patch also changes the Indexer::extractRequiredMetaData() as is
had the same issue. It now used the ImageInfo object.

Resolves: #66268
Releases: master, 6.2
Change-Id: I51d8ee5106b07667139f49a7acdfaabf99501a5b
Reviewed-on: http://review.typo3.org/38468
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Resource/Index/Indexer.php
typo3/sysext/core/Classes/Type/File/ImageInfo.php