Claude Code Plugins

Community-maintained marketplace

Feedback

Practical image processing - strip metadata, create thumbnails, convert formats (webp/avif), resize, optimize. Uses ImageMagick.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name image-enhancer
description Practical image processing - strip metadata, create thumbnails, convert formats (webp/avif), resize, optimize. Uses ImageMagick.

Image Enhancer

Practical image processing for developers and content creators.

Trigger Keywords

Activate when user mentions:

  • "strip exif", "remove metadata", "clean image"
  • "thumbnail", "resize image", "make smaller"
  • "convert to webp", "convert to avif", "convert format"
  • "optimize image", "compress image", "reduce file size"
  • "enhance image", "sharpen", "upscale"
  • "batch process images"

Quick Reference

Task Command
Strip metadata magick input.jpg -strip output.jpg
Thumbnail 200px magick input.jpg -thumbnail 200x200 thumb.jpg
Convert to WebP magick input.png output.webp
Convert to AVIF magick input.png -quality 80 output.avif
Compress JPG magick input.jpg -quality 82 -strip output.jpg
Resize 50% magick input.jpg -resize 50% output.jpg

When User Asks, Present Options

When a user provides an image and wants processing, present this menu:

What would you like to do with this image?

1. Strip metadata (remove EXIF, AI markers, location data)
2. Create thumbnail (specify size: 100, 150, 200, 300px)
3. Convert format:
   - WebP (best for web, good compression)
   - AVIF (best compression, modern browsers)
   - PNG (lossless, transparency)
   - JPG (photos, universal)
4. Resize (50%, 75%, or custom dimensions)
5. Optimize for web (compress + strip metadata)
6. Upscale (1.5x or 2x with sharpening)
7. All of the above (custom pipeline)

Which option(s)? (e.g., "1 and 3" or "optimize for web")

Common Workflows

Web Development (Most Common)

# Optimize for web: strip metadata, convert to webp, compress
magick input.png -strip -quality 82 output.webp

Thumbnail Generation

# Square thumbnail, 200x200, cropped from center
magick input.jpg -thumbnail 200x200^ -gravity center -extent 200x200 -strip thumb.jpg

# Preserve aspect ratio, max 200px wide
magick input.jpg -thumbnail 200x -strip thumb.jpg

Batch Processing

# Convert all PNGs to WebP
for f in *.png; do magick "$f" -strip -quality 85 "${f%.png}.webp"; done

# Create thumbnails for all JPGs
for f in *.jpg; do magick "$f" -thumbnail 200x200 -strip "thumb_$f"; done

# Strip EXIF from all images
magick mogrify -strip *.jpg *.png

Format Conversion

To WebP (recommended for web):

magick input.png -quality 85 output.webp
# Typical: 2MB PNG → 200KB WebP

To AVIF (best compression, newer):

magick input.png -quality 80 output.avif
# Typical: 2MB PNG → 100KB AVIF
# Note: Not all browsers support AVIF yet

To JPG (universal compatibility):

magick input.png -quality 85 -strip output.jpg

Strip All Metadata

# Remove EXIF, GPS, camera info, AI generation markers
magick input.jpg -strip clean.jpg

# Verify it's clean
exiftool clean.jpg  # Should show minimal data
identify -verbose clean.jpg | grep -i exif  # Should be empty

Resize Options

# By percentage
magick input.jpg -resize 50% half.jpg

# By width (auto height)
magick input.jpg -resize 800x output.jpg

# By height (auto width)
magick input.jpg -resize x600 output.jpg

# Exact dimensions (may distort)
magick input.jpg -resize 800x600! output.jpg

# Fit within box (preserve aspect)
magick input.jpg -resize 800x600 output.jpg

Optimize for Specific Use Cases

Social Media (Instagram, Twitter):

# Square crop for Instagram
magick input.jpg -gravity center -crop 1:1 -resize 1080x1080 -quality 85 -strip insta.jpg

# Twitter card
magick input.jpg -resize 1200x628^ -gravity center -extent 1200x628 -strip twitter.jpg

Favicon/Icon:

# Create multiple sizes for favicon
magick input.png -resize 16x16 favicon-16.png
magick input.png -resize 32x32 favicon-32.png
magick input.png -resize 180x180 apple-touch-icon.png

Email (keep under 100KB):

magick input.jpg -resize 600x -quality 70 -strip email.jpg

Quality Guidelines

Use Case Format Quality Max Size
Web hero WebP 85 200KB
Thumbnail JPG/WebP 80 20KB
Email JPG 70 100KB
Print PNG/TIFF 100 N/A
Social JPG 85 1MB

Tips

  1. Always strip metadata for privacy and smaller files
  2. WebP is best for web - 30% smaller than JPG
  3. AVIF is even better but check browser support
  4. Quality 80-85 is visually identical to 100 but much smaller
  5. Use -thumbnail instead of -resize for thumbnails (faster)
  6. Batch with mogrify to edit files in place (careful!)

Requirements

  • ImageMagick 7+ (magick command)
  • Optional: exiftool for detailed metadata inspection