From b81961a04e986339e2d0237d498a386dfee8a8d9 Mon Sep 17 00:00:00 2001 From: Christoph Auer Date: Fri, 6 Dec 2024 11:11:09 +0100 Subject: [PATCH] Clean up styling and docs Signed-off-by: Christoph Auer --- docling/cli/main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docling/cli/main.py b/docling/cli/main.py index 3d8e0722..ee18be97 100644 --- a/docling/cli/main.py +++ b/docling/cli/main.py @@ -180,7 +180,7 @@ def convert( ImageRefMode, typer.Option( ..., - help="Image export mode for the document (only in case of Markdown or HTML). In `placeholder`, only the position of the image is returned. In `embedded` mode, the image is contained in base64. In `referenced` mode, the image is exported in PNG format and referenced from the main exported document.", + help="Image export mode for the document (only in case of JSON, Markdown or HTML). With `placeholder`, only the position of the image is marked in the output. In `embedded` mode, the image is embedded as base64 encoded string. In `referenced` mode, the image is exported in PNG format and referenced from the main exported document.", ), ] = ImageRefMode.EMBEDDED, ocr: Annotated[ @@ -355,9 +355,11 @@ def convert( if image_export_mode != ImageRefMode.PLACEHOLDER: pipeline_options.generate_page_images = True - pipeline_options.generate_picture_images = True #FIXME: to be deprecated in verson 3 + pipeline_options.generate_picture_images = ( + True # FIXME: to be deprecated in verson 3 + ) pipeline_options.images_scale = 2 - + if artifacts_path is not None: pipeline_options.artifacts_path = artifacts_path