[New-bugs-announce] [issue41791] mimetypes module does not recognize jp2 type

Radim Novotny report at bugs.python.org
Tue Sep 15 00:31:47 EDT 2020


New submission from Radim Novotny <novotny.radim at gmail.com>:

Even if jp2 is in the official list of types https://www.iana.org/assignments/media-types/media-types.xhtml it's not recognized by the MimeTypes.guess_type:

   >>> from mimetypes import MimeTypes
   >>> MimeTypes().guess_type('test.jp2')
   (None, None)

The same example works in Python 3.7 and returns 'image/jp2'

----------
messages: 376927
nosy: naro
priority: normal
severity: normal
status: open
title: mimetypes module does not recognize jp2 type
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41791>
_______________________________________


More information about the New-bugs-announce mailing list