-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
- Drop support for IE
- MS will end the support soon in Agust...
- MS office 365 have already dropped support for IE
- Global marketshare tells us that it's down at < 1% (0.7% in fact)
- Switch to using
canvas.toBlob()instead.- Even doe it's async it much faster since it don't have to encode the image data to base64 only to be decoded again by converting it to binary data again when you convert it into a Uint8Array. then you can do
blob.arrayBuffer().then(do_something)afterwards - Using toBlob would mean that it would become async only - so drop all the sync code?
- Even doe it's async it much faster since it don't have to encode the image data to base64 only to be decoded again by converting it to binary data again when you convert it into a Uint8Array. then you can do
typedarray-to-bufferisn't really necessary. you can just safely doBuffer.from(arrayBuffer)orBuffer.from(uint8.buffer)- The uint8 array you produce don't have any byteOffsets or anything like that.
- typedarray-to-buffer is such a small package that it can be inlined.
- Really don't think you should be returning a Node Buffer, I think a Uint8Array is way better. It's more lightweight and don't depend on any nodejs stuff
ThomasOrlita
Metadata
Metadata
Assignees
Labels
No labels