Image Files

Automate image resizing, conversion, and batch processing with ImageMagick.

6|Updated Oct 27, 2025
One-click install
npx skills add https://github.com/lawless-m/claude-skills --skill image-files
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Image Files
Source: https://github.com/lawless-m/claude-skills/tree/main/Image Files
Command: npx skills add https://github.com/lawless-m/claude-skills --skill image-files

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ImageMagick.

What problem does it solve?

This Skill automates common and complex image manipulation tasks using ImageMagick, saving you time on repetitive edits like resizing, format conversion, and optimization. It streamlines workflows for web content, digital assets, and batch processing.

Core Features & Use Cases

  • Batch Processing: Efficiently apply operations like resizing, converting, and optimizing to multiple images.
  • Format Conversion & Optimization: Convert between various image formats (JPG, PNG, WebP) and optimize for web or storage.
  • Advanced Manipulation: Perform cropping, watermarking, composition, and apply effects like blur or grayscale.
  • Use Case: Automatically resize a folder of high-resolution product photos to web-friendly dimensions, convert them to WebP for faster loading, and add a watermark, all in one go.

Quick Start

Use the Image Files skill to resize 'product.jpg' to 800 pixels wide, maintaining its aspect ratio, and save it as 'product_resized.jpg'.

Frequently Asked Questions about Image Files

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

FAQPage Schema
How do I batch resize multiple images while maintaining aspect ratio?

Batch resizing with aspect-ratio preservation applies ImageMagick's -resize flag across directories, processing multiple images in parallel without distortion. The Skill handles input validation, explicit output paths, and modern command syntax to prevent overwrites and ensure consistent results across JPG, PNG, WebP, and other formats.

Can I convert images to WebP and optimize them for web in one operation?

Format conversion and optimization combine ImageMagick's conversion and -quality flags to transform images between JPG, PNG, WebP, and GIF while reducing file size. The Skill applies operation-specific flags and handles cross-format conversions efficiently for web delivery.

What image formats does ImageMagick support for processing?

ImageMagick processes JPG, PNG, GIF, BMP, TIFF, WebP, and PDF formats. The Skill automates manipulation across these common formats, applying resizing, conversion, optimization, and metadata stripping with format-specific handling and fallbacks for legacy vs. modern syntax.

How do I strip metadata and optimize images for storage?

Metadata stripping and optimization use ImageMagick's -strip flag combined with quality settings to remove EXIF data and reduce file size. The Skill applies these operations during batch processing to prepare images for storage or distribution without manual per-file configuration.

Can I generate thumbnails from a folder of high-resolution photos automatically?

Thumbnail generation uses batch processing with ImageMagick's -resize flag to convert high-resolution images to web-friendly dimensions. The Skill handles parallel processing, aspect-ratio preservation, and explicit output paths to create consistent thumbnail sets from large directories.

What happens if ImageMagick isn't installed or isn't on my PATH?

The Skill requires ImageMagick availability on PATH as a prerequisite. It includes input existence checks and error handling but cannot execute without the dependency installed and accessible from your system environment.