From a2b83fe4aea66c273a83bf17177e87d45d3f18d1 Mon Sep 17 00:00:00 2001 From: Eugene Date: Thu, 5 Jun 2025 11:09:27 +0400 Subject: [PATCH] fix: Add WEBP to the list of image file extensions (#1711) feat: Add WEBP to the list of image file extensions Signed-off-by: Eugene --- docling/datamodel/base_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docling/datamodel/base_models.py b/docling/datamodel/base_models.py index 6299e61..0269e13 100644 --- a/docling/datamodel/base_models.py +++ b/docling/datamodel/base_models.py @@ -67,7 +67,7 @@ FormatToExtensions: Dict[InputFormat, List[str]] = { InputFormat.MD: ["md"], InputFormat.HTML: ["html", "htm", "xhtml"], InputFormat.XML_JATS: ["xml", "nxml"], - InputFormat.IMAGE: ["jpg", "jpeg", "png", "tif", "tiff", "bmp"], + InputFormat.IMAGE: ["jpg", "jpeg", "png", "tif", "tiff", "bmp", "webp"], InputFormat.ASCIIDOC: ["adoc", "asciidoc", "asc"], InputFormat.CSV: ["csv"], InputFormat.XLSX: ["xlsx"],