thumbnail-of-pptx
Skill129 starsChanged 7 months agoMITView on GitHub
Capture a thumbnail image of a slide from a OneDrive/Office presentation link. Opens the PowerPoint web viewer in a headless browser and screenshots the slide canvas, producing a clean 16:9 image with no viewer chrome. Works even when the PPTX is not downloadable (e.g. personal OneDrive shares), since it screenshots the rendered slide rather than converting the file. USE FOR: make a thumbnail from a PPTX, screenshot a slide, title-slide image, OneDrive slide thumbnail, talk thumbnail from slides.
In this repository15 other files it gives its agents.
- capture-video-framesSkill
- convert-slides-to-imagesSkill
- discussion-commenterSkill
- extract-slide-textSkill
- extract-transcriptSkill
- fetch-slidesSkill
- generate-images-maiSkill
- generate-writeupSkill
- make-revealjs-presentationSkill
- make-speaker-promo-cardsSkill
- outline-slidesSkill
- pdf-to-markdownSkill
- review-presentationSkill
- youtube-descriptionSkill
- youtube-live-chatSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Run the thumbnail_of_pptx.py script to capture a slide thumbnail from a OneDrive/Office presentation link:
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Thumbnail of a PPTX slide
Run the thumbnail_of_pptx.py script to capture a slide thumbnail from a OneDrive/Office presentation link:
uv run thumbnail_of_pptx.py <url> <output_path>Arguments
url(required): A OneDrive sharing link, or anaka.msshort link that redirects to one (e.g.https://aka.ms/my-talk-slides). The link must open the Office Online / PowerPoint web viewer.output_path(required): Path to write the PNG thumbnail (e.g.thumbnail.png). Parent directories are created if needed.--slide N(optional): 1-based slide number to capture. Defaults to1, the title slide.--scale N(optional): Device scale factor for a crisper image. Defaults to2.--wait MS(optional): Milliseconds to wait for the slide to render before screenshotting. Defaults to9000. Increase for large decks or slow networks.
Outputs
A single PNG image of the requested slide, cropped to the slide canvas (roughly 16:9, no PowerPoint viewer UI).
Prerequisites
Playwright browsers must be installed:
uv run playwright install chromiumHow it works
- Launches headless Chromium and navigates to the URL (following
aka.msredirects to the real OneDrive viewer). - Waits for the network to go idle, then waits a fixed delay for the Office Online viewer to stream in and paint the slide.
- Locates the viewer iframe (named
wacIframe, with a fallback that finds any frame containing a<canvas>). - Optionally advances to slide
Nby focusing the canvas and pressing the right-arrow key. - Element-screenshots the slide
<canvas>so the output contains only the slide, not the surrounding viewer chrome.
Notes
- This is complementary to fetch-slides: use
fetch-slideswhen you need the full deck as a PDF (requires LibreOffice for PPTX), and this skill when you just want a lightweight thumbnail image of one slide and the file may not be downloadable. - Because it relies on the public web viewer, the sharing link must be viewable by anyone with the link.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

