PPTX Slim & WPS Fix — 压缩超重 PPTX + WPS 视频/GIF 可播

    1

    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

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    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 first
    • slim.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].xml first, validates every XML with minidom
    • video_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 as verify_rig.ps1.txt (marketplace text-file rule) — copy to .ps1 before 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_event while the user is on the machine (the rig never touches mouse or focus)
    • Never PrintWindow on occluded windows (DWM returns frozen cache = false "not playing")
    • Zip rewritten with [Content_Types].xml as first entry, deflate level 6, all XML validated after write

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    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 forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 11 days ago

    • Free with an Agensi account

    Requires

    Python 3
    Pillow
    FFmpeg

    Permissions

    File Scopes

    the
    .pptx
    file(s)
    you
    point
    it
    at
    an
    output
    directory
    for
    compressed
    decks
    and
    rig
    screenshots

    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.

    Listed11 days ago

    What's inside

    Frequently Asked Questions

    取决于媒体构成。大头是WAV背景音乐时最可观(39MB→0.4MB级);实测99MB→45MB。先跑inventory.py看清单再动手。

    不会。只动 ppt/media/ 下的媒体字节 + 对应 rels + [Content_Types].xml,不碰任何 slide 布局 XML,写完 minidom 全量校验。

    不能——timing树自动播放5种变体全灭,这是实测结论。可靠方案=点击播放(本skill带模板);唯一自动播放通路是GIF。

    ffmpeg产出的GIF会让整个文件所有GIF冻结(一个坏GIF污染全deck)。PIL+NEAREST保持调色板索引逐帧恒等,实测安全。

    不会。明确禁止SetCursorPos/mouse_event,窗口停靠用NOACTIVATE|NOZORDER|NOSENDCHANGING标志,不抢焦点不动鼠标。

    压缩全流程可以(Python+Pillow+ffmpeg)。播放验证rig是Windows+WPS专属(COM驱动Kwpp)。

    New in Productivity