Skip to content

SlideShapes.add_picture() does not support SVG files #1112

Description

@kameronbrooks

python-pptx version: 1.0.2

When attempting to insert SVG files into a presentation using the SlideShapes.add_picture(...) method, I receive the following error
cannot identify image file <_io.BytesIO object at 0x000001BB9A033100>

SVG files are not supported by python-pptx even though they are supported by MS PowerPoint.

Workarounds:
SVG files could be converted to png first using another tool or library, but there could be some degradation and it may not be the ideal workflow for everyone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions