Progress on storing user images

This commit is contained in:
Stefan Zermatten
2022-04-25 16:16:17 +02:00
parent 6b724cf365
commit 3e97baaaaa
10 changed files with 532 additions and 33 deletions

View File

@@ -0,0 +1,8 @@
import * as sharp from 'sharp';
export default async function createThumbnail(image) {
await sharp(image)
.resize(320, 240)
.png()
.toBuffer();
}