- Home
- Skills
- Productivity
- PPTX Slim & WPS Fix — 压缩超重 PPTX + WPS 视频/GIF 可播
PPTX Slim & WPS Fix — 压缩超重 PPTX + WPS 视频/GIF 可播
Shrink oversized .pptx (WAV→mp3, GIF/JPEG re-pack; proven 99MB→45MB→34MB) and make media play in WPS Office: click-play videos, autoplay GIFs. Ships a non-invasive screenshot rig that proves playback before you deliver.
Free
Works with the AI Agents you already use
PPTX Slim & WPS Fix — 压缩超重 PPTX + WPS 视频/GIF 可播
Example session with this skill installed
这份工程汇报 PPTX 99MB,邮箱和甲方平台都传不上去,压到 50MB 以内;另外里面两个视频在 WPS 放映时播不了,GIF 也不动,一起修好,修完要验证。
- Read your context and instructions
- Compiled the pptx slim
$ python inventory.py 汇报.pptx
汇报.pptx: 23 media, uncompressed 98.7MB, in-zip 96.9MB
by type: wav 39.2M, gif 24.5M, jpeg 18.1M, mp4 12.3M, ...
$ python slim.py 汇报.pptx 汇报-slim.pptx
汇报.pptx 99.0MB -> 汇报-slim.pptx 45.2MB
39.20M -> 0.41M wav->mp3 ppt/media/audio1.wav
18.03M -> 6.12M gif-PIL ppt/media/anim2.gif
$ powershell -File verify_rig.ps1 汇报-slim.pptx out 3,7
s3 idx=3 id=258 diff 41% = animating (video OK)
s7 idx=7 id=262 diff 0% (static slide, expected)
RIG DONE
Connects securely to your tools. The creator never sees your data.
About this skill
PPTX Slim & WPS Fix
Two jobs, one skill — both learned the hard way on a real 99MB engineering deck:
1. Shrink oversized .pptx without breaking anything. Media-first workflow: inventory what's actually heavy, then apply the recipe that pays. Proven result: 99MB → 45MB (and a 34MB variant), deck layout untouched.
2. Make media actually play in WPS Office (WPS 放映). WPS has traps PowerPoint doesn't — this skill encodes the full tested map of what's dead and what works.
What's in the box
inventory.py— media audit: per-file size (on-disk vs in-zip) + breakdown by type, so you attack the real biggest chunk firstslim.py— the compression pipeline: WAV→mp3 96k (39MB→0.4MB class), GIF pure-PIL re-pack, JPEG quality re-save; fixes.rels+[Content_Types].xml, re-zips with[Content_Types].xmlfirst, validates every XML with minidomvideo_timing.py— injects the click-play timing tree (modeled on PowerPoint's own template)verify_rig.ps1— non-invasive WPS slideshow capture rig: COM-drives the show, parks the window without stealing focus, screenshots each slide twice 1.5s apart, judges "is it animating" by pixel diff (>10% = moving; videos read 39-64%, GIFs 6-34%, static 0%). Ships asverify_rig.ps1.txt(marketplace text-file rule) — copy to.ps1before running.
WPS red lines (all empirically tested, not guessed)
- WPS ignores every PPTX timing-tree video autoplay variant — 5 XML variants, WPS's own autoplay, and COM
MediaFormat.PlayOnEntry(doesn't exist) all dead. Click-play is the reliable path; GIF is the only true autoplay - ffmpeg-produced GIFs poison the whole deck: one bad GIF freezes every GIF in the file. GIF re-pack must be pure PIL with NEAREST resize (preserves per-frame palette identity)
- mp4 must be CFR + Constrained Baseline L3.1 — High Profile / VFR (common from GIF transcodes) won't play in WPS
repeatCount="indefinite"doesn't loop; WPS may auto-advance after a video ends; poster-frame-only in edit view is normal- Anchor shape ids by regex per deck — WPS re-saves reshuffle spids and media names
Safety rules baked in
- Never
SetCursorPos/mouse_eventwhile the user is on the machine (the rig never touches mouse or focus) - Never
PrintWindowon occluded windows (DWM returns frozen cache = false "not playing") - Zip rewritten with
[Content_Types].xmlas first entry, deflate level 6, all XML validated after write
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Productivity.
Playback-verification rig requires Windows + WPS Office installed (COM automation). MP4s are deliberately untouched by default (re-encode only when playback is broken). GIF re-pack downsizes to ≤540px longest side — a quality/size tradeoff you can override.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 11 days ago
- Free with an Agensi account
- Software
Python 3PillowFFmpeg
- Optional
- WPS Office
Pillow runs the compression pipeline. FFmpeg must be on PATH for WAV to MP3 and MP4 re-encoding. Windows and WPS Office are recommended for the playback check.
Permissions
File Scopes
Compression runs locally (Python + Pillow + ffmpeg). The verification rig drives WPS Office via COM to play the deck and screenshots the slideshow window. Never touches mouse or focus.