From 71c5fae505366459fd481d2ecdabc5ebed94d49c Mon Sep 17 00:00:00 2001 From: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com> Date: Thu, 24 Apr 2025 17:33:36 +0200 Subject: [PATCH] fix: produce image artifacts in referenced mode (#151) Signed-off-by: Michele Dolfi --- docling_serve/docling_conversion.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docling_serve/docling_conversion.py b/docling_serve/docling_conversion.py index bc5783e..4441539 100644 --- a/docling_serve/docling_conversion.py +++ b/docling_serve/docling_conversion.py @@ -132,6 +132,8 @@ def _parse_standard_pdf_opts( if request.image_export_mode != ImageRefMode.PLACEHOLDER: pipeline_options.generate_page_images = True + if request.image_export_mode == ImageRefMode.REFERENCED: + pipeline_options.generate_picture_images = True if request.images_scale: pipeline_options.images_scale = request.images_scale