[BUGFIX] Try SVG first when detecting image size 45/56545/2
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 13:08:55 +0000 (15:08 +0200)
commit1d938aa1e218a6a3518636728af7bdd0d7abcbb6
tree2d6f86604f28a738d34e11c4e34cb75126df3378
parent65e7934b0fe9f2badab2dc04614f0f7433332661
[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/56545
Tested-by: TYPO3com <no-reply@typo3.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