Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

fix(svg-effects): allow picture carriers as layout atoms

hugohe3fc147a42907f
diff --git a/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py b/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py
index 255ef990..447c7a54 100644
--- a/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py
+++ b/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py
@@ -2910,10 +2910,10 @@ def is_picture_effect_carrier(elem: ET.Element) -> bool:
r'url\(#([^)]+)\)',
(elem.get('filter') or '').strip(),
) is None
+ or elem.get('data-pptx-layer') not in {None, 'master', 'layout'}
or any(
elem.get(attribute) is not None
for attribute in (
- 'data-pptx-layer',
'data-pptx-placeholder',
'data-pptx-binding',
'data-pptx-replace-with',
diff --git a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py
index 98d00b9e..85a4571c 100644
--- a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py
+++ b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py
@@ -1497,6 +1497,7 @@ def parse_template_slide(
and layer in {"master", "layout"}
and tag == "g"
and not _is_authored_preset_atom(elem)
+ and not is_picture_effect_carrier(elem)
):
raise TemplateStructureError(
f"{svg_path.name}: {element_id or tag} is a <g> on the {layer} "