/image-production:svg-to-rasterfrom image-production
Rasterizes SVG files to PNG, PDF, or PostScript at configurable resolution via CairoSVG. Supports batch processing, hi-DPI scaling, and explicit dimensions.
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.
Rasterize SVG files to PNG / PDF / PS via CairoSVG. Runs from the plugin's uv venv — no system Python pollution.
Do not use this skill when:
vectorize instead.png (default), pdf, ps.<input-dir>/<format>/. Never overwrites originals.1.0. Use 2.0, 3.0 for hi-DPI.96.#ffffff, white) for solid fill.--recursive for directory descent.Resolve venv: VENV_DIR="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/image-production/venv".
Verify cairosvg is importable in the venv:
"$VENV_DIR/bin/python" -c "import cairosvg" 2>&1
If missing → point at install-deps. If it imports but raises a libcairo error, surface the system-lib install command (sudo apt install libcairo2 / brew install cairo).
Enumerate *.svg inputs (case-insensitive). Skip non-SVG with note.
For each file, call CairoSVG via Python one-liner (keeps the skill self-contained — no helper script needed):
"$VENV_DIR/bin/python" -c "
import cairosvg, sys
kwargs = {'url': sys.argv[1], 'write_to': sys.argv[2]}
# Inject scale / dimensions / dpi / background as appropriate
cairosvg.svg2png(**kwargs) # or svg2pdf / svg2ps
" "<input.svg>" "<output.png>"
Function map: png → svg2png, pdf → svg2pdf, ps → svg2ps.
Optional kwargs: scale=<float>, output_width=<int>, output_height=<int>, dpi=<int>, background_color="<css>".
Track file sizes and any render warnings (CairoSVG prints to stderr for unsupported features).
<output-dir>/.--scale values, or wrap in a small loop.inkscape --export-type=png). CairoSVG is the lighter-weight pure-Python option.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
image-production@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin image-production38 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./Other plugins' skills for the same job