[BUGFIX] Generate thumbnails for files without width/height 77/39077/5
authorMarkus Klösges <mkloesges@gmx.de>
Thu, 30 Apr 2015 10:06:32 +0000 (12:06 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 21 May 2015 16:30:36 +0000 (18:30 +0200)
commitb9e1b0f5b974f0ce9f33c3aa756ffb582f8ca38c
tree3f2cdb4ed274a4871d923de0a63b7fbe4f27fcfb
parent0f82f038d9eedf423b0c915334d1062f6ae8a393
[BUGFIX] Generate thumbnails for files without width/height

Thumbnails should not upscale images, therefore we check for the
original size against thumbnail size. If original size is 0 (as for
pdf-Files) this leads to not generating thumbnails for those files. Now
checking original width/height against 0 to prevent this and generate
thumbs for those files again.

Resolves: #66679
Related: #66270
Releases: master, 6.2
Change-Id: I5823142a6be19e6068fea358027dc808f5fd3185
Reviewed-on: http://review.typo3.org/39077
Tested-by: Markus Klösges <mkloesges@gmx.de>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php
typo3/sysext/core/Tests/Unit/Resource/Processing/LocalPreviewHelperTest.php [new file with mode: 0644]