from-jxl
Skill21 starsChanged 7 days agoMITView on GitHub
Decode JPEG XL images (.jxl) to PNG or JPEG. Use when you need to convert JXL files back to standard formats for compatibility, display, or further editing.
- Installs packages
In this repository28 other files it gives its agents.
- ai-graphicsSkill
- auto-deskewSkill
- auto-toneSkill
- auto-white-balanceSkill
- batch-set-copyrightSkill
- check-model-pricingSkill
- convert-to-avifSkill
- fast-resizeSkill
- fast-thumbnailSkill
- images-to-pdfSkill
- install-depsSkill
- new-projectSkill
- new-workflowSkill
- open-workspaceSkill
- optimize-jpegSkill
- optimize-pngSkill
- pdf-extract-embedded-imagesSkill
- pdf-to-imagesSkill
- read-metadataSkill
- scrub-metadataSkill
- set-metadataSkill
- svg-to-rasterSkill
- to-jxlSkill
- transcode-jpeg-to-jxl-losslessSkill
- upscale-imageSkill
- vectorizeSkill
- web-readySkill
- workspace-setupSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Recursive: use find to locate .jxl files in the tree.
- Very specific: line 58
If the JXL was created via cjxl in.jpg out.jxl, this recovers the original JPEG bitstream byte-exact:
- Distinctive: line 79
If batch, show a summary of converted files.
- Very specific: line 88
Lossless JPEG recovery: Only use djxl --jpeg if you are confident the .jxl source was created via lossless JPEG transcode (i.e., cjxl …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Decode JPEG XL Images
Extract images from JPEG XL (.jxl) files using djxl. Outputs PNG or JPEG, with optional recovery of original JPEG bitstream if the source JXL was a lossless JPEG transcode.
When to use
- Converting JXL files back to PNG for general use or compatibility.
- Recovering the original JPEG bitstream from a lossless-transcoded JXL file via
djxl --jpeg. - Batch-decoding a JXL archive to portable formats.
Inputs to gather
- Input .jxl file or directory — single file or folder.
- Output format —
png(default) orjpeg. If the user has a JXL that came from a lossless JPEG transcode and wants to recover the original JPEG byte-exact, offer thejpegformat and explain the--jpegflag. - Output directory — optional. Default: same directory as input.
Procedure
1. Check tooling
command -v djxl || echo "djxl not installed — install with: sudo apt install libjxl-tools"Abort if missing.
2. Determine scope and format
- Single file: direct conversion.
- Directory (non-recursive): loop over all
.jxlfiles. - Recursive: use
findto locate.jxlfiles in the tree.
Confirm the output format with the user.
3. Decode
Single file to PNG (default):
djxl input.jxl output.pngSingle file to JPEG (standard):
djxl input.jxl output.jpgSingle file to original JPEG (lossless transcode recovery):
If the JXL was created via cjxl in.jpg out.jxl, this recovers the original JPEG bitstream byte-exact:
djxl --jpeg input.jxl recovered.jpgBatch (folder or recursive):
find <target> -maxdepth <1|999> -type f -iname '*.jxl' \
-exec djxl {} {.}.<format> \;(Replace <format> with png or jpg, or —jpeg flag for JPEG recovery.)
4. Report
After decoding:
- Count of files decoded, skipped, failed.
- Output file sizes and locations.
- If batch, show a summary of converted files.
Output / side effects
- New PNG or JPEG files created in the output directory.
- Original
.jxlfiles remain unchanged.
Notes
- Lossless JPEG recovery: Only use
djxl --jpegif you are confident the.jxlsource was created via lossless JPEG transcode (i.e.,cjxl original.jpg encoded.jxl). For JXL files created from PNG or other sources,--jpegmay produce incorrect results. - Alpha channels: JXL alpha is preserved when decoding to PNG. JPEG does not support transparency, so any alpha will be lost if decoding to JPEG.
- Color profile: JXL can carry ICC color profiles;
djxlpreserves them in the output. - Depends:
apt install libjxl-tools.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

