fix: some type errors

This commit is contained in:
2024-04-06 20:51:52 +02:00
parent 5d6a219b06
commit ed84a96150
2 changed files with 6 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ if (hash) {
const smallWidth = Math.floor(image.width * scaleFactor);
const smallHeight = Math.floor(image.height * scaleFactor);
//@ts-ignore
const smallImg = await sharp(image.fsPath)
.resize(smallWidth, smallHeight)
.withMetadata()