encodeImageToBlurhash minor
This commit is contained in:
1 parent
3794a926b5
commit
13c84f7520
1 file changed
+2
-2
+2
-2
@@ -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')}`
|
||||
}
|
||||
Reference in new issue
Block a user