-
Notifications
You must be signed in to change notification settings - Fork 25
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
Decide type of image not using URL extension #81
Comments
yeah, right now it depends on extensions to determine type. If you have any suggestions on how to determine type from the file itself that would be helpful. |
The one thing I have in my mind is to
I'll try to research this question and make PR later this week |
Maybe it is possible to use this tool or to port its part on Kotlin: https://imagemagick.org/script/identify.php |
HTTP |
Yeah that could help for network requests 👍 |
Some links could not have any extension and provide, for example, svg images. In this case, image won't be shown correctly.
Example of link: https://img.recraft.ai/k0Ksvp7ONUcklX29-XZ42n0cxZC4DkiR1UnHLgBHv0I/rs:fit:768:768:0/raw:1/plain/abs://staging/images/85e93fd8-a732-4cb6-aaac-45e9285a4aaf
The text was updated successfully, but these errors were encountered: