compress-image

Compress image files to WebP, PNG, or JPEG formats.

4|1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/GPTtang/skill-atlas --skill compress-image
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compress-image
Source: https://github.com/GPTtang/skill-atlas/tree/main/skills/productivity/compress-image
Command: npx skills add https://github.com/GPTtang/skill-atlas --skill compress-image

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps reduce the file size of images, making them easier to share, store, and load faster on websites, without significant loss of quality.

Core Features & Use Cases

  • Versatile Compression: Compresses images to WebP, PNG, or JPEG formats.
  • Automatic Tool Selection: Utilizes the best available compression tool on your system (sips, cwebp, ImageMagick, or Sharp).
  • Batch Processing: Can compress all images within a directory, including subdirectories.
  • Use Case: You have a folder full of high-resolution photos for a website. Use this Skill to compress them all into WebP format with 80% quality, significantly reducing their file size while maintaining good visual fidelity.

Quick Start

Use the compress-image skill to compress the file 'vacation.jpg' to webp format.

Frequently Asked Questions about compress-image

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

FAQPage Schema
How do I compress multiple images in a directory at once?

To compress images in batches, you can process an entire directory recursively. This automatically detects optimal compression utilities like sips or ImageMagick to shrink all image files within the folder and its subdirectories.

What's the best way to reduce image file size without losing quality?

Reducing image file size without significant quality loss is achieved by compressing images to WebP, PNG, or JPEG formats with configurable quality settings, such as an 80% quality target for WebP.

Does image compression work with both PNG and JPEG formats?

Yes, image compression works with both PNG and JPEG formats, alongside WebP. It automatically detects the best available system tool, including sips, cwebp, ImageMagick, and Sharp, to optimize your files.

Do I need ImageMagick or Sharp installed to optimize images?

You do not strictly need ImageMagick or Sharp installed to optimize images. The tool features automatic detection, utilizing whatever compression utility is available on your system, including sips, cwebp, ImageMagick, or Sharp.

Can I convert high-resolution photos to WebP for faster website loading?

You can convert high-resolution photos to WebP format for faster website loading. By compressing them with configurable quality settings, such as 80%, you significantly reduce file size while maintaining good visual fidelity.