New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: unknown JPEG marker 0 #81
Comments
Thanks for filing @googleoryx! It looks like a malformed JPEG. Given the current resourcing, this project can't make the same extensive recovery attempts that some other popular decoders can. If it turns out that this a very popular camera and encoder always produces files like this (such as the situation in #82), then we'd happily accept a PR for a workaround. |
Hey there! Having the same issue here, but with JPEG music album images. Is there a way of "sanitizing" said images beforehand so that jpeg-js is happy with them? |
Yes, but doing so mostly requires the same level of effort as decoding the JPEG to begin with. If you are getting images from a popular encoder that always produces files like this, sending examples along with repro steps is the best path to getting a PR for a workaround :) |
In my case, I work with unpredictably encoded JPG images, since they're from the Internet itself. Sadly I cannot send a sample and be done with it, as it might just really be corrupted and I wouldn't ever know |
Hi guys
I'm getting this error when trying to decode this file. I've attached the file.
The stack trace is as follows:
The jpeg opens fine in:
But I get the following error trying to open the file in Photoshop CS6 (this old version is more sensitive to file issues):
What do you guys think?
The text was updated successfully, but these errors were encountered: