/image-production:transcode-jpeg-to-jxl-losslessfrom image-production
Losslessly transcode JPEG files to JPEG XL, preserving the original JPEG bitstream while achieving ~20% file size reduction. Use when archiving JPEG photo libraries where the goal is smaller files without re-compression artifacts.
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.
Walk a directory of JPEG files and convert them to JPEG XL (.jxl) format using lossless encoding. cjxl automatically detects JPEG bitstream and preserves it without re-compression. Reports byte savings; explains how to recover the original JPEG if needed.
djxl --jpeg..jpg or .jpeg). Default: current directory..jxl files sit alongside .jpg).command -v cjxl || echo "cjxl not installed — install with: sudo apt install libjxl-tools"
Abort if missing.
Show the user what will happen:
# Count JPEGs in scope
find <target> -maxdepth <1|999> -type f \
\( -iname '*.jpg' -o -iname '*.jpeg' \) | tee /tmp/jpegs.txt | wc -l
# Estimate original size
find <target> -maxdepth <1|999> -type f \
\( -iname '*.jpg' -o -iname '*.jpeg' \) -exec du -ch {} + | tail -1
Print:
Use -d 0 (lossless) and a reasonable effort (suggest 6–7 for balance):
Folder (non-recursive):
find <target> -maxdepth 1 -type f \
\( -iname '*.jpg' -o -iname '*.jpeg' \) \
-exec cjxl -d 0 -e 7 {} {.}.jxl \;
Recursive:
find <target> -maxdepth 999 -type f \
\( -iname '*.jpg' -o -iname '*.jpeg' \) \
-exec cjxl -d 0 -e 7 {} {.}.jxl \;
(The -d 0 flag ensures lossless encoding. Effort 7 balances speed and compression. Effort 9 is slower but slightly smaller; only recommend if the user has time.)
After transcoding:
# Count JXL files created
find <target> -maxdepth <1|999> -type f -iname '*.jxl' | wc -l
# Total size of JXL files
find <target> -maxdepth <1|999> -type f -iname '*.jxl' -exec du -ch {} + | tail -1
# Bytes saved (original size - new size)
du -ch <target> | tail -1
Print:
Inform the user:
If you ever need to recover the original JPEG bitstream byte-exact (for legal/archival purposes), run:
djxl --jpeg archive.jxl recovered.jpgThis works because
cjxldetected and preserved the original JPEG structure.
.jxl files created in the source directory (or user-specified output folder)..jpg files remain untouched.cjxl auto-detects JPEG bitstreams and preserves them exactly. This is why djxl --jpeg can recover the original — it's not a re-encoded approximation.-size +100k for files larger than 100 KB).apt install libjxl-tools.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./auto-toneUse when the user wants automatic tonal correction — fix flat/washed-out / underexposed / low-contrast images by stretching levels, normalising contrast, and gamma-correcting to a neutral midtone. Implements auto-level (per-channel histogram stretch), auto-gamma (midtone correction), and a combined "punch" mode via ImageMagick. Operates on JPEG/PNG/TIFF/WebP./auto-white-balanceUse when the user wants to automatically correct the white balance of an image (or batch) — neutralise colour casts from indoor lighting, mixed light, underwater shots, scans, or uncalibrated cameras. Implements gray-world (default), white-patch (per-channel auto-level), and a combined mode via ImageMagick. Operates on JPEG/PNG/TIFF/WebP; for RAW use `darktable-cli` instead./batch-set-copyrightBatch-stamp copyright, artist, and rights information on all images in a directory. Use when you need to quickly add copyright metadata to a photo library before distribution or archival — a convenience wrapper around exiftool./check-model-pricingCheck what an image model costs on fal (default) or Replicate, search fal's library for a model, and review or update the preferred image models per use case. Use when asked "how much is this model", "what's cheapest for X", "check fal pricing", "review the fal library", "update our preferred models", or before a bulk image run.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