[BUGFIX] Generate thumbnails for files without width/height 55/39655/2
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:48:27 +0000 (18:48 +0200)
commit4a8580adf0b59b2d3469c0de3dcef561a927828c
tree0708a3a445fdbff17c8aac22030bf31be3743c8b
parentf084990f687c15dd34a6687bb9005551d030d699
[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/39655
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]