
Screenshot Compression
Compresses PNG and JPEG screenshots in place using pngquant and jpegoptim, which are purpose-built for UI content with flat colors and text. The deliberate choice to stick with PNG/JPEG instead of converting to WebP is about compatibility: WeChat editors, Word, PowerPoint, and various CMSes still choke on WebP. You get 60-80% size reduction on PNGs and 20-50% on JPEGs, which is usually enough for documentation images without the format headaches. The script won't auto-install dependencies, it just tells you the brew or apt command and exits, which is the right call for a system-level tool.
- skills.sh installs
- 3.8K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add zc277584121/marketing-skills --skill screenshot-compression --agent claude-codeInstalls into .claude/skills of the current project.
Files
Skill: Screenshot Compression
Compress screenshot images (PNG/JPEG) in place while keeping the original format. Uses pngquant for PNG and jpegoptim for JPEG — both are highly effective for screenshot content (UI elements, text, flat colors).
Prerequisites:
pngquantandjpegoptimmust be installed on the system. The script will not install them automatically — it checks for their presence and prints install instructions if missing.
When to Use
The user has screenshot files that are too large and wants to reduce file size without changing format. Common scenarios:
- Preparing images for GitHub READMEs, blog posts, or documentation
- Reducing image sizes before committing to a repository
- Batch compressing a directory of screenshots
Why Keep Original Format (Not WebP)
WebP has better compression, but poor compatibility in some contexts:
| Context | WebP Support |
|---|---|
| Browsers (Chrome/Firefox/Safari/Edge) | Yes |
| GitHub Issues/PRs | Yes |
| WeChat editor | No |
| Word / PowerPoint | No |
| Some forums/blog backends | Varies |
Keeping PNG/JPEG ensures the compressed images work everywhere.
Sponsors
Details
- Repository
- github.com/zc277584121/marketing-skills
- Categories
- Code Review & Quality, Marketing & SEO
- First seen
- May 16, 2026