question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Images without file extensions don't appear

See original GitHub issue

With <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:open
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
nbolendercommented, Feb 10, 2017

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

1reaction
radikcommented, Apr 12, 2018

Thanks, @nbolender ! You saved my time

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found