From a84ba6ddec5a6c5da757fcd0d2fd1080667f0b62 Mon Sep 17 00:00:00 2001 From: Michele Dolfi Date: Thu, 10 Oct 2024 18:28:56 +0200 Subject: [PATCH] list all PIL supported mime types Signed-off-by: Michele Dolfi --- docling/datamodel/base_models.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docling/datamodel/base_models.py b/docling/datamodel/base_models.py index 96ef0e09..5ac0110c 100644 --- a/docling/datamodel/base_models.py +++ b/docling/datamodel/base_models.py @@ -33,7 +33,13 @@ FormatToMimeType = { "application/vnd.openxmlformats-officedocument.presentationml.presentation" }, InputFormat.HTML: {"text/html", "application/xhtml+xml"}, - InputFormat.IMAGE: {"image/png", "image/jpeg"}, + InputFormat.IMAGE: { + "image/png", + "image/jpeg", + "image/tiff", + "image/gif", + "image/bmp", + }, InputFormat.PDF: {"application/pdf"}, } MimeTypeToFormat = {