Download external images with the extension that it really is
See original GitHub issueIn https://github.com/mdn/content/pull/1587 @nschonni and I discovered that some images might be called foo.jpg
but on closer inspection, it’s actually a image/png
so the name is wrong.
Who knows how many of these there are? The filecheck
command will eventually catch you if you run the fixable flaws on external images that get downloaded to disk. Inconvenient when you have to manually correct it.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Image Downloader
Image Downloader ━━━━━━━━━━ If you want to download many images at once, with this extension you can: - Explore images on the ...
Read more >How to Download All Images on a Web Page at Once - wikiHow
1. Open Google Chrome or Microsoft Edge. If you have Google Chrome or Edge installed on your computer, you have a variety of...
Read more >How to Develop an Extension to Download Images from Google
To develop the extension to download images, We first need a manifest file. The first step is to create a file called manifest.json...
Read more >Chrome doesn't always add file extension to downloaded ...
Manually putting a .png extension onto the Golden-Gate-Bridge-Xlg-1233898474 file that is actually of type image/jpeg will complicate things ...
Read more >Download all Images extension - Opera add-ons
Sites that hide image links inside an svg put inside an external document loaded into an object tag! ... Very good extension. always...
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 FreeTop 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
Top GitHub Comments
We use https://www.npmjs.com/package/file-type
I was hinting on https://en.wikipedia.org/wiki/List_of_file_signatures or https://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files
On *NIX systems, you have the
file
CLI for this. Perhaps @peterbe found another way to do it (e.g. with Node tools). Thus my question.