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(checker): require the CC token in an image credit only for a Creative Commons licence

hugohe3519329c0e76c
diff --git a/skills/ppt-master/references/image-searcher.md b/skills/ppt-master/references/image-searcher.md
index b6ec3890..e6af74bf 100644
--- a/skills/ppt-master/references/image-searcher.md
+++ b/skills/ppt-master/references/image-searcher.md
@@ -15,7 +15,7 @@ Every provider-sourced image lands in one of two tiers; everything else is rejec
| Tier | Licenses | On-slide attribution |
|---|---|---|
| `no-attribution` | CC0, Public Domain, Pexels License, Pixabay Content License | None |
-| `attribution-required` | CC BY, CC BY-SA | Inline credit `<text>` on the slide |
+| `attribution-required` | CC BY, CC BY-SA, publisher terms that require a source credit | Inline credit `<text>` on the slide (the CC token only for a CC licence) |
| `manual` | Directly selected URL or adopted-page image, license unverified | None — rights and any credit are the user's responsibility |
**Forbidden — auto-rejected**: CC BY-NC, CC BY-NC-SA, CC BY-ND, CC BY-NC-ND, All Rights Reserved, unknown or missing license.
@@ -124,7 +124,7 @@ Each successful download appends or replaces one entry keyed on `filename` (writ
## 7. On-Slide Attribution Contract
-For `license_tier: attribution-required`, every slide using the asset carries a visible, readable credit bound unambiguously to it, preserving author, source/provider, and CC BY / CC BY-SA facts from `attribution_text`. Position, size, color, per-image versus combined credits, labels, and contrast treatment belong to the page — a compact credit near the image edge or footnote area for one image, per-image credits or one labeled combined line for several, a quiet region (a scrim or gradient only when contrast fails) on a hero. Compress without dropping required facts: `team.jpg — "Untitled" via Openverse — license: CC0 (...)` → `via Openverse / CC0`; `team.jpg — "Sunset" by Jane Doe via Wikimedia Commons — license: CC BY-SA 4.0 (...)` → `© Jane Doe / Wikimedia / CC BY-SA 4.0`.
+For `license_tier: attribution-required`, every slide using the asset carries a visible, readable credit bound unambiguously to it, preserving author, source/provider, and — for a CC licence — the CC BY / CC BY-SA fact from `attribution_text`. Position, size, color, per-image versus combined credits, labels, and contrast treatment belong to the page — a compact credit near the image edge or footnote area for one image, per-image credits or one labeled combined line for several, a quiet region (a scrim or gradient only when contrast fails) on a hero. Compress without dropping required facts: `team.jpg — "Untitled" via Openverse — license: CC0 (...)` → `via Openverse / CC0`; `team.jpg — "Sunset" by Jane Doe via Wikimedia Commons — license: CC BY-SA 4.0 (...)` → `© Jane Doe / Wikimedia / CC BY-SA 4.0`.
---
diff --git a/skills/ppt-master/scripts/svg_quality/checker.py b/skills/ppt-master/scripts/svg_quality/checker.py
index 9817e796..25162db4 100644
--- a/skills/ppt-master/scripts/svg_quality/checker.py
+++ b/skills/ppt-master/scripts/svg_quality/checker.py
@@ -6961,19 +6961,27 @@ class SVGQualityChecker:
continue
license_name = str(item.get('license_name') or '').upper()
- license_token = 'CC BY-SA' if 'BY-SA' in license_name else 'CC BY'
+ # Only a Creative Commons licence has a token the credit must
+ # repeat; a publisher's own source-credit terms bind the credit to
+ # the author/source name alone.
+ if 'CC' in license_name or 'CREATIVE COMMONS' in license_name:
+ license_token = 'CC BY-SA' if 'BY-SA' in license_name else 'CC BY'
+ else:
+ license_token = None
author = str(item.get('author') or '').strip()
has_credit = bool(author) and any(
author.casefold() in block.casefold()
- and license_token in block.upper()
+ and (license_token is None or license_token in block.upper())
for block in credit_blocks
)
if not has_credit:
+ expected = f"{author or 'unknown author'}"
+ if license_token:
+ expected += f"; {license_token}"
result['errors'].append(
f"Missing image-specific inline attribution for sourced "
- f"image {filename} ({author or 'unknown author'}; "
- f"{license_token}). Add compact author + license credit per "
- f"references/image-searcher.md §7."
+ f"image {filename} ({expected}). Add compact author + "
+ f"license credit per references/image-searcher.md §7."
)
@classmethod