Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Process and manipulate images using ImageMagick. Supports resizing, format conversion, batch processing, and retrieving image metadata. Use when working with images, creating thumbnails, resizing wallpapers, or performing batch image operations.
.claude/skills/image-manipulation-image-magick/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | — | — |
| case-21 | ✗→✓ | ▲ Improved | — | — |
| case-02 | ✗→✓ | ▲ Improved | — | — |
| case-14 | ✗→✓ | ▲ Improved | — | — |
| case-01 | ✗→✓ | ▲ Improved | — | — |
This skill enables image processing and manipulation tasks using ImageMagick across Windows, Linux, and macOS systems.
Use this skill when you need to:
magick (or at C:\Program Files\ImageMagick-*\magick.exe)apt, brew, etc.)magick executablePowerShell (Windows):
powershell# Prefer ImageMagick on PATH $magick = (Get-Command magick -ErrorAction SilentlyContinue)?.Source # Fallback: common install pattern under Program Files if (-not $magick) { $magick = Get-ChildItem "C:\\Program Files\\ImageMagick-*\\magick.exe" -ErrorAction SilentlyContinue | Select-Object -First 1 -ExpandProperty FullName } if (-not $magick) { throw "ImageMagick not found. Install it and/or add 'magick' to PATH." }
Bash (Linux/macOS):
bash# Check if magick is available on PATH if ! command -v magick &> /dev/null; then echo "ImageMagick not found. Install it using your package manager:" echo " Ubuntu/Debian: sudo apt install imagemagick" echo " macOS: brew install imagemagick" exit 1 fi
PowerShell (Windows):
powershell# For a single image & $magick identify -format "%wx%h" path/to/image.jpg # For multiple images Get-ChildItem "path/to/images/*" | ForEach-Object { $dimensions = & $magick identify -format "%f: %wx%h`n" $_.FullName Write-Host $dimensions }
Bash (Linux/macOS):
bash# For a single image magick identify -format "%wx%h" path/to/image.jpg # For multiple images for img in path/to/images/*; do magick identify -format "%f: %wx%h\n" "$img" done
PowerShell (Windows):
powershell# Resize a single image & $magick input.jpg -resize 427x240 output.jpg # Batch resize images Get-ChildItem "path/to/images/*" | ForEach-Object { & $magick $_.FullName -resize 427x240 "path/to/output/thumb_$($_.Name)" }
Bash (Linux/macOS):
bash# Resize a single image magick input.jpg -resize 427x240 output.jpg # Batch resize images for img in path/to/images/*; do filename=$(basename "$img") magick "$img" -resize 427x240 "path/to/output/thumb_$filename" done
PowerShell (Windows):
powershell# Get verbose information about an image & $magick identify -verbose path/to/image.jpg
Bash (Linux/macOS):
bash# Get verbose information about an image magick identify -verbose path/to/image.jpg
PowerShell (Windows):
powershellGet-ChildItem "path/to/images/*" | ForEach-Object { $dimensions = & $magick identify -format "%w,%h" $_.FullName if ($dimensions) { $width,$height = $dimensions -split ',' if ([int]$width -eq 2560 -or [int]$height -eq 1440) { Write-Host "Processing $($_.Name)" & $magick $_.FullName -resize 427x240 "path/to/output/thumb_$($_.Name)" } } }
Bash (Linux/macOS):
bashfor img in path/to/images/*; do dimensions=$(magick identify -format "%w,%h" "$img") if [[ -n "$dimensions" ]]; then width=$(echo "$dimensions" | cut -d',' -f1) height=$(echo "$dimensions" | cut -d',' -f2) if [[ "$width" -eq 2560 || "$height" -eq 1440 ]]; then filename=$(basename "$img") echo "Processing $filename" magick "$img" -resize 427x240 "path/to/output/thumb_$filename" fi fi done
& operator (PowerShell) - Invoke the magick executable using & in PowerShell$magick for cleaner codeForEach-Object (PowerShell) or for loops (Bash)! to force exact dimensions or ^ for minimum dimensionspowershell$magick = (Get-Command magick).Source
powershell$dimensions = & $magick identify -format "%w,%h" $_.FullName $width,$height = $dimensions -split ','
powershellif ([int]$width -gt 1920) { & $magick $_.FullName -resize 1920x1080 $outputPath }
powershell& $magick $_.FullName -resize 427x240 "thumbnails/thumb_$($_.Name)"
bashcommand -v magick &> /dev/null || { echo "ImageMagick required"; exit 1; }
bashdimensions=$(magick identify -format "%w,%h" "$img") width=$(echo "$dimensions" | cut -d',' -f1) height=$(echo "$dimensions" | cut -d',' -f2)
bashif [[ "$width" -gt 1920 ]]; then magick "$img" -resize 1920x1080 "$outputPath" fi
bashfilename=$(basename "$img") magick "$img" -resize 427x240 "thumbnails/thumb_$filename"
convert instead of magick (ImageMagick 6.x vs 7.x)| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +32 percentage points is the difference between those two pass rates over the 22 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.