diff options
| author | Zephyrrus <[email protected]> | 2020-12-24 13:20:11 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-12-24 13:20:11 +0200 |
| commit | d2efb2707c4023400089fb5b08c8935d01ac3037 (patch) | |
| tree | 763c18821933bd47c073be2c4bbaec0c8b457c63 | |
| parent | chore: apply linter rules to files outside of src (diff) | |
| download | host.fuwn.me-d2efb2707c4023400089fb5b08c8935d01ac3037.tar.xz host.fuwn.me-d2efb2707c4023400089fb5b08c8935d01ac3037.zip | |
bug: Thumbs are stored as webp and not as png anymore
| -rw-r--r-- | src/api/utils/ThumbUtil.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/utils/ThumbUtil.js b/src/api/utils/ThumbUtil.js index 2f7d75a..10a7cd9 100644 --- a/src/api/utils/ThumbUtil.js +++ b/src/api/utils/ThumbUtil.js @@ -83,7 +83,7 @@ class ThumbUtil { const isImage = ThumbUtil.imageExtensions.includes(ext); const isVideo = ThumbUtil.videoExtensions.includes(ext); - if (isImage) return { thumb: `${filename.slice(0, -ext.length)}.png` }; + if (isImage) return { thumb: `${filename.slice(0, -ext.length)}.webp` }; if (isVideo) { return { thumb: `${filename.slice(0, -ext.length)}.png`, |