Skip to content
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

Upgrade to v5.0.2, Error: Unrecognized file extension, mime type or mismatch, ext: png / mime #41

Closed
munibrahman opened this issue Mar 14, 2022 · 3 comments · Fixed by #44
Assignees
Labels

Comments

@munibrahman
Copy link

Hi,

Thanks for keeping this library up to date, It's a breeze to use!

I upgraded from 4.0.1 to 5.0.2 and it throws an error every time I try to get a hash for a '.png' image.

The error is:

Error: Unrecognized file extension, mime type or mismatch, ext: png / mime

Rolling back to version 4.0.1 and trying the same file again doesn't cause any issues, so I strongly believe its something to do with the latter versions.

@gitnasr
Copy link

gitnasr commented Apr 27, 2022

Error: SOI not found. That's a new issue. I'm downgrading hoping that resolve it

@danm danm self-assigned this May 3, 2022
@danm danm added the bug label May 3, 2022
@danm
Copy link
Owner

danm commented May 3, 2022

Not sure why this would be, nothing jumps out to me in the code that would break png imports. I have updated the dependencies and the logs for better handling of errors. @munibrahman could you download the latest version 5.2.1 and hopefully that will have fixed the issue, or at least have better logs to diagnose it.
thanks

@munibrahman
Copy link
Author

munibrahman commented Jun 2, 2022

The problem was on my end. The image type .png and the mime type .jpeg were incorrect.

It was essentially a .jpeg image, simply renamed to .png.

Here is the detailed message :

Unrecognized file extension, mime type or mismatch, ext: png / mime: image/jpeg

It seems to work with the correct image type, thanks for the detailed error message. I don't think it would have been possible to know without it.

I will close this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants