imagemagick
БесплатноБез исполняемых скриптовНе проверенImage manipulation and conversion using ImageMagick inside a secure Docker container
от kubiyabot★ 19 звёзд на GitHubОб этом скилле
ImageMagick Skill
Powerful image manipulation and conversion using ImageMagick running inside a Docker container. Resize, crop, rotate, apply effects, convert formats, create thumbnails, add watermarks, and more - all without installing ImageMagick locally.
Overview
This skill provides access to ImageMagick's comprehensive image processing capabilities through a containerized runtime. All processing happens inside an isolated Docker container with resource limits and no network access, ensuring security while maintaining full ImageMagick functionality.
When to Use This Skill
Use this skill when you need to:
- Convert images between formats (JPEG, PNG, GIF, TIFF, WebP, PDF)
- Resize and scale images
- Create thumbnails with cropping
- Rotate, flip, and crop images
- Apply effects (blur, sharpen, sepia, grayscale)
- Add borders and frames
- Composite images (watermarks, overlays)
- Batch process multiple images
- Create image montages and collages
- Extract image metadata
- Generate PDFs from images
Prerequisites
Docker
ImageMagick runs inside a Docker container, so Docker must be installed:
# macOS (using Homebrew)
brew install --cask docker
# Or download from: https://www.docker.com/products/docker-desktop
# Linux (Ubuntu/Debian)
sudo apt-get update
sudo apt-get install docker.io
# Start Docker service
sudo systemctl start docker
sudo systemctl enable docker
Verify Docker Installation
docker --version
docker ps # Should list running containers
Configuration
Add to your .skill-engine.toml:
[skills.imagemagick]
source = "docker:dpokidov/imagemagick:latest"
runtime = "docker"
description = "ImageMagick image processing"
[skills.imagemagick.docker]
image = "dpokidov/imagemagick:latest"
entrypoint = "magick"
volumes = ["${PWD}:/workdir"]
working_dir = "/workdir"
memory = "1g"
network = "none"
rm = true
Configuration Explained
- image:
dpokidov/imagemagick:latest- ImageMagick Docker image (~100MB) - entrypoint:
magick- Runs ImageMagick 7.x command - volumes:
${PWD}:/workdir- Mounts current directory as/workdirin container - working_dir:
/workdir- Sets container working directory - memory:
1g- Limits container to 1GB RAM - network:
none- Disables network access (processes local files only) - rm:
true- Automatically removes container after execution
Usage
ImageMagick skill uses pass-through syntax - all arguments after -- are passed directly to ImageMagick:
skill run imagemagick -- [imagemagick command] [arguments]
All file paths are relative to your current directory, which is mounted as /workdir in the container.
Common Operations
Format Conversion
# PNG to JPEG
skill run imagemagick -- convert input.png output.jpg
# JPEG to PNG
skill run imagemagick -- convert input.jpg output.png
# Convert to WebP
skill run imagemagick -- convert input.jpg output.webp
# Convert to GIF
skill run imagemagick -- convert input.png output.gif
# Convert to TIFF
skill run imagemagick -- convert input.jpg output.tiff
Resize & Scale
# Resize to exact dimensions (may distort)
skill run imagemagick -- convert input.jpg -resize 800x600! output.jpg
# Resize maintaining aspect ratio (fit within box)
skill run imagemagick -- convert input.jpg -resize 800x600 output.jpg
# Resize by width only (maintain aspect ratio)
skill run imagemagick -- convert input.jpg -resize 800 output.jpg
# Resize by height only
skill run imagemagick -- convert input.jpg -resize x600 output.jpg
# Resize by percentage
skill run imagemagick -- convert input.jpg -resize 50% output.jpg
# Shrink only (never enlarge)
skill run imagemagick -- convert input.jpg -resize 800x600\> output.jpg
# Enlarge only (never shrink)
skill run imagemagick -- convert input.jpg -resize 800x600\< output.jpg
Thumbnails
# Basic thumbnail
skill run imagemagick -- convert input.jpg -thumbnail 150x150 thumb.jpg
# Square thumbnail (crop to center)
skill run imagemagick -- convert input.jpg -thumbnail 150x150^ -gravity center -extent 150x150 thumb.jpg
# Thumbnail with quality control
skill run imagemagick -- convert input.jpg -thumbnail 150x150 -quality 85 thumb.jpg
# Multiple thumbnails
skill run imagemagick -- convert input.jpg -thumbnail 300x300 large.jpg -thumbnail 150x150 medium.jpg -thumbnail 75x75 small.jpg
Crop
# Crop to 100x100 pixels starting at position 50,50
skill run imagemagick -- convert input.jpg -crop 100x100+50+50 output.jpg
# Crop from center
skill run imagemagick -- convert input.jpg -gravity center -crop 200x200+0+0 output.jpg
# Crop specific region
skill run imagemagick -- convert input.jpg -crop 400x300+100+50 output.jpg
# Remove extra canvas space
skill run imagemagick -- convert input.jpg -crop 100x100+50+50 +repage output.jpg
Rotate & Flip
# Rotate 90 degrees clockwise
skill run imagemagick -- convert input.j
Установить imagemagick в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл imagemagick?
Image manipulation and conversion using ImageMagick inside a secure Docker container
Как установить скилл imagemagick?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл imagemagick запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub