Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel e4cf682217 Merge pull request #372 from linkwarden/dev
minor bug fixed
2023-12-29 10:53:41 -05:00
daniel31x13 e4fc8948fa minor bug fixed 2023-12-29 10:52:08 -05:00
+1 -1
View File
@@ -142,7 +142,7 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
if (buffer) {
// Load the image using Jimp
Jimp.read(buffer, async (err, image) => {
if (image) {
if (image && !err) {
image?.resize(1280, Jimp.AUTO).quality(20);
const processedBuffer = await image?.getBufferAsync(
Jimp.MIME_JPEG