DSH Plugin Asset Optimizer: FFmpeg-Based Web Image and Video Optimization

dsh-plugin-asset-optimizer is a DSH client plugin maintained by thegabopacheco-sudo (v0.1.0, MIT). It leverages ffmpeg to reduce image/video resolution or quality for web delivery, convert formats, and report file sizes before and after optimization. It provides `status` and `optimize` tools. By default it operates in read-only mode; write operations require `confirm:true`, and the mode can be restricted via `DSH_ASSET_OPTIMIZER_MODE=read-only`. To install: `dsh plugin --profile <profile> add github:thegabopacheco-sudo/dsh-plugin-asset-optimizer`. Requires Node 20+ and a local ffmpeg installation. The plugin runs with the privileges of the dsh process; audit logs are stored at `cache/asset-optimizer/audit.jsonl` under `DSH_HOME`.

Read More