use correct size for png

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-02-19 17:10:54 +01:00
parent 96d939b2e8
commit 0c944e95db
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -304,8 +304,8 @@ public class ThumbnailsCacheManager {
}
// Handle PNG
if (file.getMimetype().equalsIgnoreCase(PNG_MIMETYPE)) {
thumbnail = handlePNG(thumbnail, pxW, pxH);
if (thumbnail != null && file.getMimetype().equalsIgnoreCase(PNG_MIMETYPE)) {
thumbnail = handlePNG(thumbnail, thumbnail.getWidth(), thumbnail.getHeight());
}
// Add thumbnail to cache