Load fonts directly from assets directory, fix image buffer issues

This commit is contained in:
Essem 2022-09-22 23:44:54 -05:00
parent 273e5b94d7
commit 4f66519aa7
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
22 changed files with 188 additions and 111 deletions

View file

@ -140,7 +140,7 @@ class ImageConnection {
type = contentType;
break;
}
return { arrayBuffer: await req.body.arrayBuffer(), type };
return { buffer: Buffer.from(await req.body.arrayBuffer()), type };
}
async getCount() {