本文へ移動
cccskills
無料GitHub で公開

processing-images

Image processing toolkit awareness. Use when: user uploads images for manipulation, requests format conversion, batch processing, compositing, resizing, optimization, analysis, effects, metadata inspection, montages, animated GIFs, color correction, or any image-related task. Also use when working with screenshots, photos, diagrams, icons, or visual assets. Triggers on 'resize', 'crop', 'convert', 'compress', 'optimize', 'thumbnail', 'watermark', 'montage', 'collage', 'gif', 'sprite sheet', 'color space', 'metadata', 'EXIF', 'compare images', 'diff', 'overlay', 'composite', 'batch process', 'image analysis', 'histogram', 'blur', 'sharpen', 'rotate', 'flip', 'border', 'shadow', 'round corners', 'favicon', 'icon set'.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md7.7 KB
  • CHANGELOG.md278 B
  • README.md747 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Image Processing Tools

This container has a rich image processing toolkit. Before writing any image code, scan this inventory to pick the best tool for the job — don't default to Pillow for everything.

Tool Selection by Task

Format Conversion & Batch Operations

ImageMagick convert is the default choice. Handles 260+ formats, single command, no code needed.

convert input.png output.webp
convert input.png -quality 85 output.jpg
mogrify -format webp *.png          # batch in-place

For animated formats (GIF↔WebP↔APNG, video↔frames), prefer ffmpeg.

Resize, Crop, Thumbnails

ImageMagick for CLI one-liners. Pillow when already in Python pipeline.

convert input.jpg -resize 800x600 output.jpg          # fit within box
convert input.jpg -resize 800x600^ -gravity center -extent 800x600 output.jpg  # fill+crop
convert input.jpg -thumbnail 200x200^ -gravity center -extent 200x200 thumb.jpg

IM supports 30+ resize filters: -filter Lanczos (sharp downscale), -filter Mitchell (balanced), -filter Point (nearest-neighbor/pixel art).

Compositing & Overlays

ImageMagick composite or convert with -composite. Supports all Porter-Duff modes.

composite -gravity southeast watermark.png photo.jpg output.jpg
convert base.png overlay.png -gravity center -composite result.png

For complex multi-layer work or programmatic positioning, use Pillow (Image.paste, Image.alpha_composite).

Montages, Collages, Contact Sheets

ImageMagick montage — purpose-built for grid layouts.

montage *.jpg -geometry 200x200+5+5 -tile 4x3 sheet.jpg
montage *.png -label '%f' -geometry +4+4 catalog.png

Animated GIFs & Frame Sequences

ImageMagick for simple GIF assembly. ffmpeg for anything involving timing control, video sources, or optimization.

convert -delay 10 -loop 0 frame_*.png animation.gif        # IM
ffmpeg -framerate 10 -i frame_%03d.png -vf palettegen palette.png && \
ffmpeg -framerate 10 -i frame_%03d.png -i palette.png -lavfi paletteuse output.gif  # optimized

imageio is convenient for frame-sequence GIFs from Python arrays.

Image Analysis & Measurement

identify for quick metadata and stats. OpenCV for structural analysis. scikit-image for scientific measurement.

identify -verbose image.png          # full metadata dump
identify -format '%wx%h %[colorspace] %[depth]bit' image.png   # targeted
  • OpenCV (cv2): histograms, contour detection, template matching, edge detection, color distribution
  • scikit-image (skimage): region properties, morphology, thresholding (Otsu, adaptive), feature detection (SIFT via OpenCV, ORB), SSIM comparison
  • scipy.ndimage: convolution, interpolation, labeling connected components

Image Comparison & Diffing

ImageMagick compare produces visual diffs directly.

compare image1.png image2.png diff.png
compare -metric RMSE image1.png image2.png null: 2>&1   # numeric similarity

For structural similarity: skimage.metrics.structural_similarity (SSIM).

Color Operations

ImageMagick handles color space conversion, channel manipulation, color quantization.

convert input.jpg -colorspace Gray output.jpg
convert input.png -colors 16 reduced.png           # quantize
convert input.jpg -modulate 110,130,100 output.jpg  # brightness,saturation,hue
convert input.png -channel R -separate red_channel.png

For programmatic color analysis (dominant colors, palettes): OpenCV k-means on pixel arrays, or Pillow getcolors().

Effects & Filters

ImageMagick has extensive built-in effects:

convert in.png -blur 0x3 out.png              # Gaussian blur
convert in.png -sharpen 0x1 out.png
convert in.png -shadow 60x4+2+2 out.png       # drop shadow
convert in.png -vignette 0x40 out.png
convert in.png -sketch 0x10+120 out.png
convert in.png -charcoal 2 out.png
convert in.png -edge 1 out.png
convert in.png -emboss 1 out.png
convert in.png \( +clone -background black -shadow 60x4+0+0 \) +swap -background none -layers merge +repage rounded.png

For advanced/custom convolution kernels: scipy.ndimage or OpenCV.

Metadata & EXIF

identify -verbose reads all metadata. Pillow reads/writes EXIF programmatically.

identify -verbose image.jpg | grep -A20 'Properties:'
from PIL import Image
img = Image.open("photo.jpg")
exif = img.getexif()  # dict-like access to EXIF tags

Note: no exiftool in this container. Use identify or Pillow for metadata tasks.

Icons, Favicons, App Icons

ImageMagick generates multi-size ICO files directly.

convert icon.png -define icon:auto-resize=256,128,64,48,32,16 favicon.ico

For icon sets (iOS/Android), batch-resize with convert or mogrify to each required size.

PDF & EPS (limited)

ImageMagick can read/write PDF and EPS but Ghostscript is not installed — complex PDF rasterization may fail. For PDF-to-image, prefer Pillow (for simple cases), pdfplumber (text/table extraction), or the pdf skill (for full PDF manipulation). IM's built-in PDF delegate handles basic operations.

Seam Carving (Content-Aware Resize)

ImageMagick has Liquid Rescale (LQR) built in:

convert input.jpg -liquid-rescale 80x100%! output.jpg   # shrink width 20%, preserve content

SVG Handling

ImageMagick rasterizes SVG via its built-in delegate. For SVG→PNG at specific sizes:

convert -density 300 input.svg -resize 800x output.png

No Inkscape or rsvg-convert available. For SVG manipulation, work with the XML directly or use Python's lxml.

Complete Tool Inventory

ToolTypeKey Strength
ImageMagick 6.9CLI suite260 formats, effects, compositing, batch ops
ffmpegCLIVideo/animation, frame extraction, optimized GIFs
GraphvizCLIDiagram→image rendering (dot, neato, etc.)
LibreOfficeCLIDocument→image conversion
Pillow 12.1PythonGeneral-purpose, EXIF, drawing, WebP/AVIF, freetype
OpenCV 4.13PythonComputer vision, histograms, contours, morphology
scikit-image 0.26PythonScientific analysis, SSIM, segmentation, features
Wand 0.6PythonFull ImageMagick API from Python
imageio 2.37PythonUnified I/O, GIF frame sequences
scipy.ndimagePythonConvolution, interpolation, labeling
numpyPythonRaw pixel array math
reportlabPythonPDF generation with embedded images

Key Constraints

  • No Ghostscript — PDF/EPS rasterization is limited to IM's built-in delegate
  • No potrace/autotrace — bitmap-to-vector tracing unavailable
  • No standalone optimizers — no optipng, pngquant, jpegoptim, gifsicle (use IM quality settings or ffmpeg instead)
  • No exiftool — use identify or Pillow for metadata
  • No Inkscape — SVG manipulation is XML-level only
  • HEIC/AVIF read-only in ImageMagick; Pillow supports AVIF read/write
  • ImageMagick is v6 — use convert/identify commands, not magick (v7 syntax)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

GitHub repository access in containerized environments using REST API and credential detection. Use when git clone fails, or when accessing private repos/writing files via API.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1502026年10月10日 更新

Decide which model, effort level, and cascade shape each subagent gets, and how to keep improvement loops safe (evaluator-as-selector, stop on regression). Routes on measured cost-per-completed-task rather than per-token price, because a tier's token count varies more by task shape than price varies across tiers. Covers per-model effort semantics, the concision lever, cascade preconditions, context handoff, and watching a subagent fan-out live. Use when spawning subagents via the Agent or Workflow tools, when choosing how to escalate a failed attempt, when fanning out more than a handful of agents, or when asked which model or effort a task should get. Grounded in a 2026-07 calibration, a 2026-08 coding-cost study, a 2026-09 seeded-bug repair battery, a 2026-10 Haiku 5.5 ladder priced per spawn, and a 2026-10 retry-versus-escalation ladder on 295 SWE-bench Verified tasks; Managed Agents API specifics are operational, not calibrated.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1502026年10月10日 更新

Securely manages API credentials for multiple providers (Anthropic Claude, Google Gemini, GitHub). Use when skills need to access stored API keys for external service invocations.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1502026年10月10日 更新

Guidance for asking clarifying questions when user requests are ambiguous, have multiple valid approaches, or require critical decisions. Use when implementation choices exist that could significantly affect outcomes.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1502026年10月10日 更新

Pre-change blast-radius report for a symbol or file. Walks tree-sitting references, augments with a plain-text scan over non-parsed files (configs, plain docs), and clusters affected sites by feature (`_FEATURES.md`) or top-level package. Use when about to refactor, rename, or delete something in a repo you don't own — "what breaks if I change `validateUser`", "who calls this", "is this safe to remove", "where is this used", "blast radius", "impact analysis". This is the CONVERGENT pre-change risk skill — for "what is this repo?" use exploring-codebases; for "where is X?" use searching-codebases.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1502026年10月10日 更新

Read Bluesky/ATProto without depending on Bluesky's AppView — interactions on a user's posts, thread replies, any repo's records, network-wide backlinks across every lexicon, an account's handle and PDS history, which collections are active network-wide, and layer-by-layer outage diagnosis. Use when bsky.app or the AppView is down or slow, when a Bluesky read returns timeouts or 5xx, when asked who liked/replied/quoted/reposted something, when pulling live Bluesky context cheaply, when reading records straight from a PDS, when asked who references a record or account anywhere on the network, whether an account has changed handle or migrated servers, or which lexicons and non-Bluesky apps are active on atproto. Complements browsing-bluesky, which routes everything through the AppView and fails when it does.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1502026年10月10日 更新

oaustegard のスキルをすべて見る

このスキルの問題を報告する