Closed max-kamps closed 2 years ago
see the "Storing hashes" section of the README, hex_to_hash is not the right function here.
Thank you! I was very confused by the fact that it seemed to work 90% of the time. Oh well. Should have read the docs more closely.
Some images (I would say about 10% of them) cause
colorhash
to return invalid values that can't be roundtripped. Feeding their hex representation intohex_to_hash
creates an invalidImageHash
object that crashes when stringified again. Example code that reproduces the issue: