Closed pwlmaciejewski closed 4 years ago
I was planing on ripping out the core of that library to a separate package, and then make a PR to them to use it.
If we then only use the core package, this package would also start working in the browser 🙌 since @canvas/image
uses the native Image
object in the browser, and since the core wouldn't have any file-system or other dependencies
Said and done: https://github.com/commonsmachinery/blockhash-js/pull/24
Fixed in #20
Why
blockhash-js
doesn't declarepng-js
norjpeg-js
in it's deps, that forcesimghash
to do it instead. Also, the maintainers of https://github.com/commonsmachinery/blockhash-js can't update the npm version of the library (no access).What
1) Either replace
blockhash-js
with something else or fork it & fix the issue 2) Removepng-js
andjpeg-js
from the deps.Notes
spin-off #16