encodeImageToBlurhash minor

This commit is contained in:
tmshv committed 2022-09-06 13:51:32 +03:00
1 parent 3794a926b5
commit 13c84f7520
1 file changed
+2 -2
+2 -2
View File
@@ -14,7 +14,7 @@ export async function encodeImageToBlurhash(url: string) {
.resize(8, 8, { fit: "inside" })
.toFormat('jpeg')
const { data: out, info } = await t.toBuffer({ resolveWithObject: true })
const { data } = await t.toBuffer({ resolveWithObject: true })
return `data:image/jpeg;base64,${out.toString('base64')}`
return `data:image/jpeg;base64,${data.toString('base64')}`
}