image-compression

Compress image files and output a compressed copy next to the original.

1|Updated Dec 9, 2024
One-click install
npx skills add https://github.com/hadenlabs/tasks --skill image-compression-hadenlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-compression
Source: https://github.com/hadenlabs/tasks/tree/main/.claude/skills/image-compression
Command: npx skills add https://github.com/hadenlabs/tasks --skill image-compression-hadenlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduce image file sizes by compressing input images using the MCP image-compression tool, helping save storage and improve load times.

Core Features & Use Cases

  • Validate input path or prompt user for a file if missing.
  • Compress image using the MCP tool and write output next to the original with a predictable name.
  • Provide before/after size reporting and dimensions when available.

Quick Start

Provide an image path or specify the file to compress, and the skill will output a compressed file next to the original.

Frequently Asked Questions about image-compression

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

FAQPage Schema
How do I compress an image file to reduce its size for web performance?

To compress an image, provide the file path to the tool, which outputs a compressed file next to the original with a predictable name and provides before/after size reporting.

What is the best way to automate image compression for local assets?

Automating image compression for local assets involves using the MCP image-compression tool to process single files, outputting a reduced-size copy without overwriting the original unless explicitly requested.

Will image compression overwrite my original files during the process?

Image compression does not overwrite your original files; it writes the compressed output next to the original using a predictable name (basename-compressed.ext) unless explicitly requested.

What happens if I run image compression without specifying a file path?

If a file path is missing during image compression, the skill validates the input and prompts the user to provide the correct path before proceeding with the compression task.

Can I get before and after file size reporting after compressing an image?

Yes, after compressing an image, the tool provides before and after size reporting and includes image dimensions when available to verify the optimization results.

Does image compression work for both single files and development workflows?

Image compression targets local assets and web-ready images in development and content workflows, handling single files efficiently to help save storage and improve load times.