zc277584121 avatar

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-code

Installs 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: pngquant and jpegoptim must 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:

ContextWebP Support
Browsers (Chrome/Firefox/Safari/Edge)Yes
GitHub Issues/PRsYes
WeChat editorNo
Word / PowerPointNo
Some forums/blog backendsVaries

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

More from zc277584121/marketing-skills

All 14
1dpearson2699 avatardevice-integritydpearson2699/swift-ios-skillsVerify device legitimacy and app integrity using DeviceCheck (DCDevice per-device bits) and App Attest (DCAppAttestService key generation, attestation, and asse3.8Kskills.sh installs
2raroque avatarvibe-securityraroque/vibe-security-skillAudits codebases for common security vulnerabilities that AI coding assistants introduce in "vibe-coded" applications. Checks for exposed API keys, broken acces3.8Kskills.sh installs
3yaklang avatardependency-confusionyaklang/hack-skillsSupply-chain testing via package-manager dependency confusion: when internal package names resolve to attacker-controlled public registries, leading to maliciou3.8Kskills.sh installs
4szkocot avatarkarpathy-guidelinesszkocot/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, s3.8Kskills.sh installs
5yaklang avatararbitrary-write-to-rceyaklang/hack-skillsArbitrary write to RCE playbook. Use when you have an arbitrary write primitive (from heap exploitation, format string, or OOB write) and need to convert it int3.8Kskills.sh installs
6dpearson2699 avataralarmkitdpearson2699/swift-ios-skillsImplement AlarmKit alarms and countdown timers for iOS and iPadOS with Lock Screen, Dynamic Island, StandBy, and paired Apple Watch system UI. Covers AlarmManag3.8Kskills.sh installs