Closed MouseAndKeyboard closed 4 years ago
Confirmed, it does fail for me as well. @LinusU Is this something that can be fixed in cwasm-jpeg-turbo?
First of all, sorry for the very long delay in getting to this.
This is super interesting! I thought that long-jump was just used for error handling in jpeg-turbo, but maybe I was wrong 🤔
I've filed an issue upstream here: https://github.com/LinusU/cwasm-jpeg-turbo/issues/2
Anyone found a workaround for this?
Hey @LinusU @pwlmaciejewski can you please look at pull request that adds a workaround for this bug? I need this workaround to get merged so we can continue using imghash.
Hey @pwlmaciejewski, I see that you liked my previous comment. Can you please also merge the PR and generate and publish new package? I can't merge it because I don't have permissions.
Hi @bbhopesh, thank you for your contribution! I'm going to check it as soon as I can, I'll keep you posted.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@bbhopesh bump
Fixed and released in v0.0.8. Thank you @bbhopesh for taking care of it!
It's my pleasure. @pwlmaciejewski
I'm writing a project which downloads images and then hashes them, storing the result.
Most images work fine, for example: Link Works as expected.
However: Link
Fails to hash and throws the following error:
I suspect the image is somehow corrupted but I'm not good enough with image encodings to understand how.
After running them through an online file type checker I get the following results: (For the correctly-working image):
For the broken/corrupt image
This corroborates my belief that the images are somehow different. These images are submitted by users so it could be possible that the image was maliciously crafted in order to be buggy/corrupted.