screenshot-compression

Compress PNG and JPEG screenshots in place using pngquant and jpegoptim.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/zc277584121/marketing-skills --skill screenshot-compression
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: screenshot-compression
Source: https://github.com/zc277584121/marketing-skills/tree/main/skills/screenshot-compression
Command: npx skills add https://github.com/zc277584121/marketing-skills --skill screenshot-compression

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pngquant, jpegoptim, and includes scripts (resource) components.

What problem does it solve?

This Skill reduces large screenshot file sizes by compressing PNG and JPEG images in place while preserving original formats and broad compatibility, avoiding format changes that break editors or platforms.

Core Features & Use Cases

  • In-place compression: Overwrites original PNG and JPEG screenshots with optimized versions to save storage and bandwidth.
  • PNG and JPEG tuning: Uses pngquant quality ranges and jpegoptim quality parameters to balance quality and size for different scenarios.
  • Batch and recursive processing: Compress single files, entire directories, or recursively scan folders for documentation, README images, blog posts, and repository assets.

Quick Start

Run the compress_screenshots.py script on the target files or directories to compress PNG and JPEG images in place using pngquant and jpegoptim.

Frequently Asked Questions about screenshot-compression

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress PNG and JPEG screenshots in place?

You can compress PNG and JPEG screenshots in place by running a script that applies pngquant and jpegoptim to overwrite original files with optimized versions, providing per-file and total compression summaries.

What's the best way to batch compress README and blog post images?

Batch compressing README and blog post images involves recursively scanning directories to apply pngquant and jpegoptim tuning, overwriting original PNG and JPEG assets to reduce storage and bandwidth.

Does in-place image compression preserve the original PNG and JPEG formats?

In-place image compression preserves original PNG and JPEG formats by overwriting files with optimized versions, avoiding format changes that could break editors or platforms.

Do I need pngquant and jpegoptim installed to compress screenshots?

Yes, you need pngquant and jpegoptim installed on the host system to compress screenshots, as the script relies on these dependencies for PNG and JPEG quality tuning and size reduction.

Can I adjust quality settings when compressing repository screenshot assets?

You can adjust quality settings when compressing repository screenshot assets by using pngquant quality ranges and jpegoptim quality parameters to balance image quality and file size for different scenarios.