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(image-orientation): keep GIFs out of rotation flow

hugohe3e3529158fd41
diff --git a/skills/ppt-master/SKILL.md b/skills/ppt-master/SKILL.md
index eade1453..014bfa73 100644
--- a/skills/ppt-master/SKILL.md
+++ b/skills/ppt-master/SKILL.md
@@ -57,6 +57,7 @@ compete with it.
5. **No speculative execution** — Do not prepare later-phase artifacts before their owning step.
6. **Deterministic routing** — Do not add a route-choice question when [`routing.md`](workflows/routing.md) resolves the request. If a route prerequisite is missing, state it and stop that route.
7. **Owning-source recovery** — On failure, repair or regenerate the owning source artifact and resume from the route's declared pointer. Do not silently downgrade a required artifact.
+8. **Stable paths** — Use absolute skill/project paths; never derive them from CWD.
## Global Communication Rules
diff --git a/skills/ppt-master/scripts/docs/conversion.md b/skills/ppt-master/scripts/docs/conversion.md
index aa5ef427..6e3f5e90 100644
--- a/skills/ppt-master/scripts/docs/conversion.md
+++ b/skills/ppt-master/scripts/docs/conversion.md
@@ -561,7 +561,7 @@ Generate a labeled static contact sheet. This command previews the first frame
after EXIF normalization and does not modify source images:
```bash
-python3 scripts/rotate_images.py sheet <images_directory>
+python3 ${SKILL_DIR}/scripts/rotate_images.py sheet <images_directory>
```
The default output is
@@ -579,10 +579,13 @@ must be `90`, `180`, or `270`:
Apply the confirmed fixes and regenerate image facts:
```bash
-python3 scripts/rotate_images.py fix /tmp/orientation_fixes.json
-python3 scripts/analyze_images.py <images_directory>
+python3 ${SKILL_DIR}/scripts/rotate_images.py fix /tmp/orientation_fixes.json
+python3 ${SKILL_DIR}/scripts/analyze_images.py <images_directory>
```
+GIF files are excluded: `sheet` does not list them, and `fix` rejects a batch
+that references one so all GIF files remain unchanged.
+
Do not infer a rotation from prose, EXIF, or aspect ratio alone, and do not
launch the HTML `gen` command in source intake. `auto` remains an in-place EXIF
normalizer. `gen` is a compatibility UI that runs the same normalization before
diff --git a/skills/ppt-master/scripts/rotate_images.py b/skills/ppt-master/scripts/rotate_images.py
index f1e30aab..86a0b994 100644
--- a/skills/ppt-master/scripts/rotate_images.py
+++ b/skills/ppt-master/scripts/rotate_images.py
@@ -141,7 +141,7 @@ class ImageRotator:
raise FileNotFoundError(f"Directory not found: {target_path}")
valid_exts = {
- '.bmp', '.gif', '.jpeg', '.jpg', '.png', '.tif', '.tiff', '.webp'
+ '.bmp', '.jpeg', '.jpg', '.png', '.tif', '.tiff', '.webp'
}
files = sorted(
(
@@ -357,6 +357,19 @@ class ImageRotator:
elif isinstance(json_source, list):
tasks = json_source
+ gif_paths = []
+ for task in tasks:
+ if not isinstance(task, dict):
+ continue
+ task_path = self._normalize_task_path(task.get('path', ''))
+ if Path(task_path).suffix.lower() == '.gif':
+ gif_paths.append(task_path)
+ if gif_paths:
+ raise ValueError(
+ "GIF rotation is unsupported; preserve GIF files unchanged: "
+ + ", ".join(gif_paths)
+ )
+
print(f"[WORK] Starting {len(tasks)} manual rotation task(s)...")
print("=" * 60)