Skip to content

Combine generated captions with image references #2803

@lcs-crr

Description

@lcs-crr

Requested feature

Currently, if image captioning is turned on by pipeline_options.do_picture_description = True and the extracted markdown is saved with the document.save_as_markdown(output_md_name, artifacts_dir=assets_dir, image_mode="referenced") method, the captions are inserted above the image reference.
It would be great if one could combine them so that for each image, the caption would be inserted into the reference, like ![image_caption](path_to_image)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions