[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt

Jonathan Watt <jw...@jwatt.org> added the comment:

I'm unfamiliar with the Python contribution procedures. If it's simply a case 
of cloning from github.com and putting up a PR then I can do that. I'm 
overloaded currently though, so if it's more involved than that it may take me 
a while to figure things out.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue22589>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt

Jonathan Watt <jw...@jwatt.org> added the comment:

> If image/bmp is now[*] the official IANA type

You can find image/bmp here:

https://www.iana.org/assignments/media-types/media-types.xhtml#image

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue22589>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt

Jonathan Watt <jw...@jwatt.org> added the comment:

I should note that while Chrome will refuse to open an image/x-ms-bmp file 
directly, when loaded as an image embedded in a document (e.g. via HTML's 
) then Chrome doesn't care what MIME type it has. It will sniff the image 
stream and detect from its contents that it is a BMP image and correctly render 
it.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue22589>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt

Jonathan Watt <jw...@jwatt.org> added the comment:

Using image/x-ms-bmp because that's all that IE7 supports makes no sense. 
Chrome doesn't support image/x-ms-bmp (it only supports the official IANA type 
image/bmp), so if the concern is over browser support then it's clear that 
Chrome (the browser with the most market share) should trump IE7 (a browser 
that stopped getting support/security updates at the beginning of 2016, and has 
virtually no browser share).

--
nosy: +jwatt

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue22589>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com