From fc9ea6b23bb544101ef9476981e936fcdce8c7b4 Mon Sep 17 00:00:00 2001 From: "frost.wong" Date: Thu, 17 Jul 2025 09:31:23 +0800 Subject: [PATCH] fix: add support for MPO encoded jpeg images. https://github.com/scanny/python-pptx/issues/787 --- src/pptx/parts/image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pptx/parts/image.py b/src/pptx/parts/image.py index 9be5d02d6..99146b7b0 100644 --- a/src/pptx/parts/image.py +++ b/src/pptx/parts/image.py @@ -230,6 +230,7 @@ def ext(self) -> str: "PNG": "png", "TIFF": "tiff", "WMF": "wmf", + "MPO": "jpg", } format = self._format if format not in ext_map: