imagemagick-conversion

Convert, resize, and batch-process images using ImageMagick command-line operations.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/chhpt/skills --skill imagemagick-conversion-chhpt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagemagick-conversion
Source: https://github.com/chhpt/skills/tree/main/skills/imagemagick-conversion
Command: npx skills add https://github.com/chhpt/skills --skill imagemagick-conversion-chhpt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually converting, resizing, and optimizing images one by one is slow and error-prone, especially when preparing assets for web deployment or processing large batches of files. ## Core Features & Use Cases - Format Conversion: Convert between PNG, JPEG, WebP, GIF, and TIFF formats individually or in batch with mogrify. - Resizing & Thumbnails: Resize by percentage, dimensions, or aspect-ratio-preserving constraints, and generate thumbnails quickly. - Quality & Optimization: Adjust compression quality, strip metadata to reduce file size, and apply transformations like rotate, crop, and flip. - Use Case: You have a folder of 200 JPEG photos that need to be resized to a maximum width of 1920px and converted to WebP for a website. A single mogrify command handles the entire batch while preserving the originals. ## Quick Start Ask the assistant to convert all JPEG images in the current folder to WebP format resized to 800 pixels wide using ImageMagick.

Frequently Asked Questions about imagemagick-conversion

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

FAQPage Schema
How do I convert images between formats with ImageMagick?

Use the magick command with an input and output file, such as magick image.jpg image.png, and the format is inferred from the output extension. For batch conversion, use magick mogrify -format png *.jpg to convert all files at once.

How to batch resize images while keeping aspect ratio?

Use magick mogrify -resize 800x600 -path output/ *.jpg to resize all images to fit within 800x600 while preserving aspect ratio. The -path option writes results to a separate directory so originals stay untouched.

What is the difference between mogrify and convert in ImageMagick?

Mogrify modifies files in place or writes to a directory specified with -path, making it efficient for batch operations. Convert (or plain magick) always creates a new output file, which is safer for single-file operations.

Does ImageMagick support WebP and modern image formats?

Yes, ImageMagick supports WebP along with PNG, JPEG, GIF, and TIFF. You can verify supported formats on your installation by running magick identify -list format.

When should I not use ImageMagick for image editing?

ImageMagick is not suited for advanced photo retouching, complex filters, video processing, or vector graphics. Use GIMP or Photoshop for detailed editing, FFmpeg for video, and Inkscape for vector work.