
Screenshot Compression
Lossy in-place compression of PNG and JPEG screenshots using pngquant and jpegoptim, keeping the original formats.
- skills.sh installs
- 3.8K
- last updated
- Aug 21, 2026
What it does
- Covers single files and directories, with optional recursive scanning for batch compression runs
- Runs
pngquantpalette quantization for PNG andjpegoptimre-encoding with metadata stripping for JPEG - Checks for both tools first and exits with install instructions rather than installing anything
- Designed for docs, READMEs, and blog posts where PNG and JPEG must stay compatible with editors and platforms
Install
$ npx -y skills add zc277584121/marketing-skills --skill screenshot-compression -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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.
Details
- Repository
- github.com/zc277584121/marketing-skills
- First seen
- May 16, 2026
More from zc277584121/marketing-skills
All 14Similar to Screenshot Compression
video-to-gifzc277584121/marketing-skills3.9K installsMulti-variant video-to-GIF converter that generates comparison sets for visually picking the best size and quality tradeoff.
baoyu-compress-imagejimliu/baoyu-skills28.7K installsCompact image compressor that converts to WebP or PNG with automatic tool selection and optional original retention.
image-enhancercomposiohq/awesome-claude-skills5.4K installsEnhances screenshots and images through upscaling, sharpening, and artifact cleanup, keeping originals intact.
imagemagick-conversionlaurigates/claude-plugins260 installsPractical ImageMagick guide for converting, resizing, batch-processing, and generating thumbnails from the command line.
PDF Compressclaude-office-skills/skills590 starsGuided PDF size reduction by preset level, image and font optimization, and batch jobs with before-and-after reports.
image-optimizationaj-geddes/useful-ai-prompts665 installsImage optimization guide that compares JPEG, PNG, WebP, and SVG formats for smaller, faster-loading pages.