From eb7e4d48c9f016575863ab4449ccf45ac31fa3a4 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 23 Apr 2017 16:40:42 +0200 Subject: [PATCH] Add mimetypes for jp2 and webp Those image formats can be processed by Tesseract, so they are needed for improved Nextcloud OCR. Signed-off-by: Stefan Weil --- resources/config/mimetypemapping.dist.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/config/mimetypemapping.dist.json b/resources/config/mimetypemapping.dist.json index 2b187a6ac8..09be65dd86 100644 --- a/resources/config/mimetypemapping.dist.json +++ b/resources/config/mimetypemapping.dist.json @@ -71,6 +71,7 @@ "iiq": ["image/x-dcraw"], "impress": ["text/impress"], "java": ["text/x-java-source"], + "jp2": ["image/jp2"], "jpeg": ["image/jpeg"], "jpg": ["image/jpeg"], "jps": ["image/jpeg"], @@ -170,6 +171,7 @@ "vsd": ["application/vnd.visio"], "wav": ["audio/wav"], "webm": ["video/webm"], + "webp": ["image/webp"], "woff": ["application/font-woff"], "wpd": ["application/vnd.wordperfect"], "wmv": ["video/x-ms-wmv"],