MimeTypes
MimeTypes copied to clipboard
Add support for jfif files
Hi,
Any chance the jfif extension could be added to the typeMap? I believe it just has the mime type of image/jpeg.
Thanks!
Hi @JBac! ππ»
The file is generated from mime-db, which in turn is compiled from IANA, Apache and nginx's MIME types.
If you're able to get the entry into mime-db, maybe in custom-types.json, it'll automatically trickle into this library π
BTW, looks like they've already requested some documentation for jfif; https://github.com/jshttp/mime-db/issues/177.
Still no .jfif "support". I know this list is generated directly from mime-db, which compiles from the three aforementioned sources, and this extension is not registered in any of them, but the JFIF files are handled as "image/jpeg" by all browsers and even in official sources: https://www.w3.org/Graphics/JPEG/
I'm actually adding it manually, but it would be nice to have this already packed in MimeTypes :-) Adding a post-download process to add a few common mime-types if they are missing would be great. Basically that's what I'm currently doing on my code, but I believe most people will have "faith" that this list is mostly inclusive, while, in fact, a somewhat common image format if missing :-(
Looks like there's a PR for it already; https://github.com/jshttp/mime-db/pull/291 βΊοΈ