Skip to content

PPTX: Extract images #56

Description

Currently, the script only extracts placeholders, i.e.,

![Content Placeholder 16](ContentPlaceholder16.jpg)

It would be nice if the tool would export the images (to the current folder or a folder passed as argument).
Thus, one could see the images in the markdown preview as well.

Image

Activity

  1. AlbanOtt2 commented on Dec 16, 2024

    @AlbanOtt2

    Note: This issue also exists for Word (.docx) documents.

    A potential improvement would be to export images in a format like ![](media/image1.png).
    This would allow users to simply unzip their Word document and retrieve the image from where Word stores it: media/image1.png.

    It would also enable the possiblity to automate this example:

    result = md.convert("example.jpg")

  2. afourney commented on Dec 16, 2024

    @afourney
    Member

    Yes, better handling of images is on my to-do list. The original purpose of the library was to support text-only LLMs, so the original focus was on extracting image metadata (e.g., tags, xmp, iptc, captions, etc.). But there's clear value in saving the images to disk and supporting them directly.

  3. added
    enhancement
    open for contribution
    on Dec 17, 2024
  4. masquare commented on Jan 29, 2025

    @masquare
    Contributor

    FYI and related to this issue: I've created PR #306, which describes images in PPTX files using LLMs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementopen for contribution

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions