[BUGFIX] Try SVG first when detecting image size 21/56521/5
authorAnja <aleichsenring@ab-softlab.de>
Tue, 3 Apr 2018 14:56:50 +0000 (16:56 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 4 Apr 2018 11:37:11 +0000 (13:37 +0200)
commit8f8adb7e33b5e01aa23688a36edd4b3cc4b52c20
treef8fee94c2c275d693769f988720845bfe7e370ed
parentb4de256c5678fe470527463b82deaf02e4fd3ae7
[BUGFIX] Try SVG first when detecting image size

By processing SVG files first and falling back to IM/GM identify, output
of a 'invalid image content' error for SVG files is avoided.

Change-Id: I44a7d822b100bdc83f7afa8aa544b6f3eff194d0
Resolves: #84586
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/56521
Reviewed-by: Stephan GroƟberndt <stephan.grossberndt@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Type/File/ImageInfo.php