From image-production
Use when the user wants AVIF output — modern web format with ~30% better compression than WebP at the same visual quality, and ~50% better than JPEG. Wraps `avifenc`. Companion to `convert-to-webp`. Best target for new web work; check browser support if delivering to ancient clients.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin image-productionThis skill uses the workspace's default tool permissions.
Encode JPEG/PNG/TIFF to AVIF. AVIF beats WebP on compression ratio and supports 10/12-bit, HDR, and lossless modes. Browser support is universal as of 2024 (Chrome 85+, Firefox 113+, Safari 16.4+).
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Encode JPEG/PNG/TIFF to AVIF. AVIF beats WebP on compression ratio and supports 10/12-bit, HDR, and lossless modes. Browser support is universal as of 2024 (Chrome 85+, Firefox 113+, Safari 16.4+).
web-ready orchestrator.Do not use this skill when:
convert-to-jxl's unique trick, not AVIF's.avifenc -q N (0–100). Default 60 (visually equivalent to JPEG q82, much smaller). 80 for archival; 45 for aggressive.avifenc -s <0..10>. Default 6 (balanced). 0 is best compression but very slow; 10 is fast but bigger files.--lossless. Enables lossless mode (ignores quality). For exact archival of PNG.--depth 8|10|12. Default 8. Use 10 for HDR or 16-bit source.<input-dir>/avif/. Skill never overwrites originals.--recursive for directory descent.--keep-exif to copy EXIF over via exiftool.Verify avifenc is on PATH. If missing, point at install-deps.
Enumerate inputs (jpg, jpeg, png, tiff — skip others with note).
For each file:
avifenc -q <quality> -s <speed> [--lossless] [--depth <n>] "<input>" "<output>"
Per-file. avifenc is single-threaded per encode but accepts --jobs N for tile-parallel — useful on large images. For batch parallelism, use xargs -P <ncpu>.
If --keep-exif was set, post-process:
exiftool -tagsfromfile "<input>" -all:all "<output>" -overwrite_original
Track size deltas.
<output-dir>/.<orig-MB> → <new-MB> (<pct>% saved).--qcolor if requested).6 is ~2–4× slower than cwebp. Speed 0 can be 30× slower. Pick 6 unless archiving.--speed 6 --quality 60 is the de facto web-prep default — quality matches q82 JPEG at roughly half the bytes.avifenc -i input1.png -i input2.png ...) but this skill focuses on still images.convert-to-jxl instead — JXL has a unique lossless-JPEG mode.