/image-production:auto-tonefrom image-production
Auto-corrects flat, underexposed, or low-contrast images via ImageMagick. Supports auto-level, auto-gamma, and punch modes for JPEG/PNG/TIFF/WebP.
Ships in image-production. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fix flat or under/over-exposed images without manual curves work. Three modes:
-auto-level on the luminance channel. Stretches the histogram to [0,1] without touching colour balance. Safe, reversible-feeling.-auto-gamma. Drives the image's mean brightness toward 50% grey. Lifts dark scans, tames blown-out daylight.-normalize (1% black + 1% white clip) followed by -auto-gamma. Stronger; the "press the button" preset for batch gallery prep.Do not use this skill when:
darktable-cli where you have full bit depth.magick identify -format "%[fx:standard_deviation]" "$IN" ≥ 0.22 → likely already toned; auto-level becomes a no-op or worse).level (default) | gamma | punch.--recursive for directory descent._tone. --output-dir <path> to write into a sibling folder. --overwrite to replace.0.0 to 1.0 (default 1.0). Blends corrected image with original via -compose blend.on. Operate on the luminance channel only (HSL L), so colour relationships aren't shifted. --per-channel to apply auto-level independently to R/G/B (acts as combined tone + white-balance — usually you want auto-white-balance for that instead).1. --clip 0.5 for gentler, --clip 2 for aggressive contrast.Verify ImageMagick 7+. magick -version | head -1. Else convert (IM6) with the same syntax.
Enumerate inputs (JPEG/JPG/PNG/TIFF/TIF/WebP). Skip RAW with note.
level (luminance-only auto-level, hue-preserving):
magick "$IN" -colorspace HSL -channel L -auto-level +channel -colorspace sRGB "$OUT"
With --per-channel:
magick "$IN" -channel RGB -auto-level +channel "$OUT"
gamma:
magick "$IN" -auto-gamma "$OUT"
-auto-gamma computes the gamma needed to drive mean → 0.5 and applies it. No clipping, no hue shift.
punch:
magick "$IN" -normalize -auto-gamma "$OUT"
Or with explicit clip:
magick "$IN" -channel L -contrast-stretch ${CLIP}%x${CLIP}% +channel -auto-gamma "$OUT"
-contrast-stretch 1%x1% clips the darkest 1% to black and brightest 1% to white before stretching — the "Photoshop auto-contrast" behaviour.
Strength blend (when <1.0):
magick "$IN" "$WB" -compose blend -define compose:args=$(awk "BEGIN{print $STRENGTH*100}") -composite "$OUT"
For batch, parallelise with xargs -P $(nproc). Skip files ending _tone to avoid recursive re-processing.
fx:standard_deviation) — sanity check that the run actually changed something.--mode punch --strength 0.7 is the sane default.auto-white-balance: run WB first (so tone correction operates on a neutral image), then tone. Reverse order is not order-equivalent.apply-filters may chain it with sharpen/saturate; use this skill standalone when you only want tonal work.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
image-processing, auto-level, auto-gamma, histogram-stretch, imagemagick
38 skills in this plugin
/ai-graphicsGenerate AI graphics (banners, illustrations, hero images, social cards, characters, etc.) on fal, or Replicate if asked, choosing a cost-effective model per use case. Use when the user asks to create, generate, or make an image, banner, illustration, graphic, or artwork, or to redraw a reference image. For technical diagrams use tech-comms-diagrams./auto-deskewUse when the user wants to automatically straighten a tilted image — scanned documents, phone-captured pages, photographed receipts, or slightly off-axis photos. Detects the dominant skew angle and rotates the image to vertical/horizontal, optionally cropping the resulting transparent triangles. Uses ImageMagick `-deskew` for documents and a Hough-line fallback (via Python + OpenCV) for photographs./image-production@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin image-productionOther plugins' skills for the same job