[
https://issues.apache.org/jira/browse/TIKA-3559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17418514#comment-17418514
]
Olle Jonsson commented on TIKA-3559:
------------------------------------
[~nick] Hi! Yes, I amended the Description here with one.
> Add MIME type for .webmanifest files
> ------------------------------------
>
> Key: TIKA-3559
> URL: https://issues.apache.org/jira/browse/TIKA-3559
> Project: Tika
> Issue Type: New Feature
> Reporter: Olle Jonsson
> Priority: Minor
>
> Hello!
> This issue is a proposal to add the MIME type for [Web
> Manifest|https://www.w3.org/TR/appmanifest/].
> * [Description of the new MIME type in the W3 "Web Application Manifest"
> editor's draft.|https://www.w3.org/TR/appmanifest/#media-type-registration]
> * [Example of usage in the MDN article on Web
> Manifest|https://developer.mozilla.org/en-US/docs/Web/Manifest#deploying_a_manifest_with_the_link_tag]
> *Example implementation*: What it could look like the XML in the Tika
> project:
> {code:xml}
> <mime-type type="application/manifest+json">
> <_comment>Web Application Manifest file</_comment>
> <sub-class-of type="application/json"/>
> <glob pattern="*.webmanifest"/>
> </mime-type>
>
> {code}
> I was looking through
> https://github.com/apache/tika/blob/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
> and could not find any such mention.
>
> *Example Web Manifest* file from the MDN page:
> {code:json}
> {
> "name": "HackerWeb",
> "short_name": "HackerWeb",
> "start_url": ".",
> "display": "standalone",
> "background_color": "#fff",
> "description": "A readable Hacker News app.",
> "icons": [{
> "src": "images/touch/homescreen48.png",
> "sizes": "48x48",
> "type": "image/png"
> }, {
> "src": "images/touch/homescreen72.png",
> "sizes": "72x72",
> "type": "image/png"
> }, {
> "src": "images/touch/homescreen96.png",
> "sizes": "96x96",
> "type": "image/png"
> }, {
> "src": "images/touch/homescreen144.png",
> "sizes": "144x144",
> "type": "image/png"
> }, {
> "src": "images/touch/homescreen168.png",
> "sizes": "168x168",
> "type": "image/png"
> }, {
> "src": "images/touch/homescreen192.png",
> "sizes": "192x192",
> "type": "image/png"
> }],
> "related_applications": [{
> "platform": "play",
> "url": "https://play.google.com/store/apps/details?id=cheeaun.hackerweb"
> }]
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)