add upload preview

change to webp format
This commit is contained in:
Mystikfluu
2022-11-19 19:06:51 +01:00
parent 456a390c4c
commit a949ae3707
3 changed files with 49 additions and 97 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ async function addTextOnImage(text,buf) {
top: 0,
left: 0,
},
]).toBuffer()
]).webp({effort:6}).toBuffer()
} catch (error) {
console.log(error);
}