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(scripts): slice gutter advice only when the key passed at the current tolerance

hugohe3c89e6b2474f2
diff --git a/skills/ppt-master/scripts/slice_images.py b/skills/ppt-master/scripts/slice_images.py
index 1641d445..532e34d6 100644
--- a/skills/ppt-master/scripts/slice_images.py
+++ b/skills/ppt-master/scripts/slice_images.py
@@ -585,10 +585,13 @@ def _log_keying_findings(
"larger --tolerance would eat into the elements."
)
elif (
- any("content reaches the" in finding for finding in findings)
+ outlier <= tolerance
+ and any("content reaches the" in finding for finding in findings)
and not any("boundary pixels stayed opaque" in finding for finding in findings)
):
- # Cells keyed cleanly; only element tips crossed a gutter.
+ # The key itself passed at this tolerance; only element tips
+ # crossed a gutter. When the farthest gutter pixel exceeds the
+ # tolerance the branch below still offers the rerun instead.
_log(
" Content crosses a cell edge: no --bg/--tolerance rerun "
"can separate it. Regenerate with a wider key-only gutter "