summaryrefslogtreecommitdiffstats
path: root/resources/config
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2017-04-23 16:40:42 +0200
committerStefan Weil <sw@weilnetz.de>2017-04-25 18:43:39 +0200
commiteb7e4d48c9f016575863ab4449ccf45ac31fa3a4 (patch)
treefeaa4ab38631be2c4a7b1dafaa4b101a07369305 /resources/config
parent51da0442d9604f9285d02b56f2b1f669701da90b (diff)
downloadnextcloud-server-eb7e4d48c9f016575863ab4449ccf45ac31fa3a4.tar.gz
nextcloud-server-eb7e4d48c9f016575863ab4449ccf45ac31fa3a4.zip
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 <sw@weilnetz.de>
Diffstat (limited to 'resources/config')
-rw-r--r--resources/config/mimetypemapping.dist.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/config/mimetypemapping.dist.json b/resources/config/mimetypemapping.dist.json
index 2b187a6ac85..09be65dd86f 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"],