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

docs(svg-image-embedding): tighten prose, keep all rules and concrete values

hugohe3d527540c2762
diff --git a/skills/ppt-master/references/svg-image-embedding.md b/skills/ppt-master/references/svg-image-embedding.md
index 78b33f50..754e435e 100644
--- a/skills/ppt-master/references/svg-image-embedding.md
+++ b/skills/ppt-master/references/svg-image-embedding.md
@@ -2,13 +2,13 @@
# SVG Image Embedding Guide
-Technical specifications and recommended workflow for adding images to SVG files.
+Technical spec and workflow for adding images to SVG files.
---
## Image Resource List Format
-Defined in the Design Specification & Content Outline; each image has a status annotation. This file is the authority for image status names and SVG image embedding behavior. If the image approach includes "B) User-provided", run `analyze_images.py` immediately after the Strategist completes the Eight Confirmations, and complete the list before outputting the design spec.
+Defined in the Design Specification & Content Outline; each image carries a status annotation. This file is authoritative for status names and SVG embedding behavior. If image approach includes "B) User-provided": run `analyze_images.py` right after the Eight Confirmations and complete the list before outputting the design spec.
```markdown
| Filename | Dimensions | Purpose | Type | Status | Generation Description |
@@ -22,11 +22,11 @@ Defined in the Design Specification & Content Outline; each image has a status a
| Status | Meaning | Executor Handling |
|--------|---------|-------------------|
-| **Pending** | Needs AI generation, has a generation description | Image_Generator must attempt generation before Executor; should not remain in the list after Step 5 |
-| **Generated** | AI-generated file exists at the expected path | Reference directly from `../images/` |
-| **Needs-Manual** | Generation was attempted once plus one retry and failed | Use a dashed placeholder unless the user has manually supplied the expected file |
+| **Pending** | Needs AI generation, has generation description | Image_Generator attempts generation before Executor; must not remain after Step 5 |
+| **Generated** | AI-generated file exists at expected path | Reference directly from `../images/` |
+| **Needs-Manual** | Generation attempted once + one retry, failed | Dashed placeholder unless user has manually supplied the file |
| **Existing** | User already has image | Place in `images/`, reference with `<image>` |
-| **Placeholder** | Image intentionally not prepared yet | Use dashed border placeholder; replace later |
+| **Placeholder** | Intentionally not prepared yet | Dashed border placeholder; replace later |
---
@@ -42,7 +42,7 @@ Defined in the Design Specification & Content Outline; each image has a status a
5. Post-processing & Export → follow shared-standards.md §5
```
-> Recommended: During generation, keep external references in `svg_output/`. Post-processing via `finalize_svg.py` auto-embeds images into `svg_final/`, then export PPTX from `svg_final/`.
+> Keep external references in `svg_output/` during generation. `finalize_svg.py` auto-embeds images into `svg_final/`; export PPTX from `svg_final/`.
---
@@ -83,7 +83,7 @@ Defined in the Design Specification & Content Outline; each image has a status a
### Preview Method
-Browser security restrictions prevent loading external images from directly opened SVGs. Start an HTTP server from the project root:
+Browser security blocks external images on directly opened SVGs. Serve via HTTP from the project root:
```bash
python3 -m http.server -d <project_path> 8000
@@ -114,16 +114,16 @@ python3 -m http.server -d <project_path> 8000
## Conversion Process
-Use the unified post-processing pipeline in [shared-standards.md §5](shared-standards.md). It runs `finalize_svg.py` before export so image references from `svg_output/` become embedded assets in `svg_final/`.
+Use the unified pipeline in [shared-standards.md §5](shared-standards.md). `finalize_svg.py` runs before export so image references in `svg_output/` become embedded assets in `svg_final/`.
```bash
python3 scripts/finalize_svg.py <project_path>
python3 scripts/svg_to_pptx.py <project_path> -s final
```
-### Standalone: embed_images.py (Advanced Usage)
+### Standalone: embed_images.py (advanced)
-For processing specific SVGs without running the full pipeline:
+For processing specific SVGs without the full pipeline:
```bash
python3 scripts/svg_finalize/embed_images.py <svg_file> # Single file
@@ -137,7 +137,7 @@ python3 scripts/svg_finalize/embed_images.py --dry-run <project_path>/svg_output
### Image Optimization
-Compress images before embedding to reduce file size:
+Compress before embedding to reduce file size:
```bash
convert input.png -quality 85 -resize 1920x1080\> output.png # ImageMagick
@@ -157,19 +157,19 @@ project/
### Rounded Corner / Non-rectangular Image Cropping
-`clipPath` **on `<image>` elements** is conditionally allowed. The authoritative constraints are in [shared-standards.md §1.2](shared-standards.md); do not restate or relax them here.
+`clipPath` **on `<image>` elements** is conditionally allowed — authoritative constraints in [shared-standards.md §1.2](shared-standards.md); do not restate or relax here.
-Alternative for the rare case where `clipPath` does not fit: bake the rounded corners into the source image (PNG with alpha) before embedding.
+Fallback when `clipPath` doesn't fit: bake rounded corners into the source image (PNG with alpha) before embedding.
---
## FAQ
**Q: Can't see images when opening SVG directly?**
-Browser security policy blocks cross-directory requests. Start an HTTP server from the project root, or run `finalize_svg.py` first then view from `svg_final/`.
+Browser security blocks cross-directory requests. Serve via HTTP from project root, or run `finalize_svg.py` first and view from `svg_final/`.
**Q: Base64 file too large?**
-Compress the original image, use JPEG format, reduce resolution (match actual display dimensions).
+Compress the source, use JPEG, reduce resolution to match actual display dimensions.
**Q: How to reverse-extract a Base64 image?**
```bash