Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 214716

Summary: app-misc/mime-types-7: add image/jp2 for jpeg2000 and others
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
URL: http://www.iana.org/assignments/media-types/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Tool examining IANA registry

Description Martin von Gagern 2008-03-25 15:21:45 UTC
The file /etc/mime.types should contain a line for image/jp2 which is an officially assigned MIME type for JPEG2000. There are two other formats associated with the JPEG2000 compression mechanism and registered with IANA. I suggest addin these three types to mime.types:

image/jp2					jp2 jpg2
image/jpm					jpm jpgm
image/jpx					jpf
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-25 15:25:36 UTC

*** This bug has been marked as a duplicate of bug 190802 ***
Comment 2 Martin von Gagern 2008-03-25 15:31:58 UTC
Created attachment 147275 [details]
Tool examining IANA registry

While looking for missing type definitions in general, I wrote this small application that traverses the IANA registry (using dev-perl/WWW-Mechanize), remembers the types it finds there, and tries to find out the associated file extensions as well. I thought it might be useful to maintainers of the mime-types package, so I attach it here.

There is a line near the end marked with "EDIT HERE" where you can specify what kind of results you want to actually include in the program output. Right now it skips types with no hints as to the file extension, as well as vendor specific types (containing /vnd.). You might wish to modify this selection.

The most notable non-image types currently missing in mime-types-7 seems to be application/fastinfoset and application/relax-ng-compact-syntax. Several others have additional extensions, especially many */prs.* types.

BTW, is there any reason against including all IANA registered types? You don't have to associate any file extensions to rarely used types, but the types themselves should do little harm, except for making the mime.types file a bit larger.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-25 15:51:57 UTC
Please stick this to  bug 190802, thanks.