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
blockhash-js should be able to detect the image type from the arrayBuffer directly, without having to resort to the content type of the xhr request. See:
blockhash-js
should be able to detect the image type from the arrayBuffer directly, without having to resort to the content type of the xhr request. See:http://stackoverflow.com/questions/8349693/how-to-check-if-a-byte-array-is-a-valid-image
http://stackoverflow.com/questions/25841460/how-to-recognise-the-arraybuffer-is-string-or-image
http://stackoverflow.com/questions/4550296/how-to-identify-contents-of-a-byte-is-a-jpeg
This would allow the library to support hashing from an arrayBuffer from an instance of the FileReader class without having to supply content type.
https://developer.mozilla.org/en-US/docs/Web/API/FileReader
The text was updated successfully, but these errors were encountered: