You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I am looking for a PNG encoding library, which will take array of bytes (uncompressed image) and will return array of bytes (compressed image). It can be ArrayBuffer or just a simple array, e.g. [0, 255, 4, ...] (but classic Array usually takes at least 4 bytes per item, which is 4 times more than ArrayBuffer).
Can you add such an interface to your library? I see you are using Canvas as parameter. It seems very strange to me, when such a library requires DOM, when it should only manipulate with numbers.
The text was updated successfully, but these errors were encountered:
I am very sorry, it seems, that your "canvas" variable can also be Uint8Array. It seems a little strange to me, to allow a variable of so many types ... what about making a separate function for each image representation?
Hi. I am looking for a PNG encoding library, which will take array of bytes (uncompressed image) and will return array of bytes (compressed image). It can be ArrayBuffer or just a simple array, e.g. [0, 255, 4, ...] (but classic Array usually takes at least 4 bytes per item, which is 4 times more than ArrayBuffer).
Can you add such an interface to your library? I see you are using Canvas as parameter. It seems very strange to me, when such a library requires DOM, when it should only manipulate with numbers.
The text was updated successfully, but these errors were encountered: