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?
dom-pixels.js accepts the following types:
'.GIF'
node-pixels.js accepts the following types:
'image/png'
'image/jpg'
'image/jpeg'
'image/gif'
'image/bmp'
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?