scijs / get-pixels

Reads an image into an ndarray
MIT License
543 stars 108 forks source link

dom-pixels and node-pixels don't accept same type string sets #33

Open benwiley4000 opened 7 years ago

benwiley4000 commented 7 years ago

dom-pixels.js accepts the following types:

node-pixels.js accepts the following types:

Clearly this is a problem if I want to run the same script on the server and client.

The node-pixels version seems more thought-out - perhaps this should be used instead for the client and the '.GIF' option should be deprecated and phased out in the next major version?