Images without file extensions don't appear
See original GitHub issueWith <Image>
, the source URI doesn’t need a file extension to be recognized and rendered properly as an image. I just tested <ResponsiveImage>
and that also works.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Picture file without extension [duplicate] - Super User
After looking at the file in a hex editor, I see the file is in the SVG format. Rename the file and add...
Read more >Can I use images without extension in <img>? - Stack Overflow
Yes, you should be able to. Browsers initially don't look at the filename, they look at the MIME type listed in the Content-type...
Read more >Fix Windows 10 Picture Thumbnails Not Showing
8 different ways to fix photo thumbnails not appearing on Windows 10 PC manually. You can also try a reliable photo repair software...
Read more >Chrome doesn't always add file extension to downloaded ...
The HTTP headers show no extension for the duckduckgo link: Content-Type: image/jpeg ... Content-Disposition: inline ...
Read more >Displaying image file type in folders - Microsoft Community
My folders of image files no longer display the extensions (.jpg, .png etc.) or the specific "type" of files, other than to say...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve found that iOS will not display a local image without an extension because it assumes PNG. More details here: https://github.com/jayesbe/react-native-cacheable-image/issues/23#issuecomment-260864612
The fix for this is to append an extension to the cached copy if one doesn’t exist. The library you linked appends ‘jpg’ to any file without an extension: https://github.com/kfiroo/react-native-cached-image/blob/master/ImageCacheProvider.js#L41
Thanks, @nbolender ! You saved my time