Skip to content

Add JPEG XL converter example - #3126

Closed
Ram-Pavith wants to merge 1 commit into
image-rs:mainfrom
Ram-Pavith:add-jpegxl-converter
Closed

Ram-Pavith wants to merge 1 commit into
image-rs:mainfrom
Ram-Pavith:add-jpegxl-converter

Conversation

@Ram-Pavith

Copy link
Copy Markdown

Adds a JPEG XL converter example (examples/convert_to_jxl.rs).

The image crate has no JXL encoder, so the example decodes/validates input with the crate, then encodes via the first available libjxl backend (cjxl, ffmpeg/libjxl, ImageMagick) and checks the output JPEG XL signature.

Verified: cargo build --example convert_to_jxl, and a --lossless run on a sample PNG whose output decodes pixel-exact.

@mstoeckl

mstoeckl commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

I don't think this is particularly useful as a program by itself (if you want general format conversion that mostly uses Rust, then something like https://github.com/Shnatsel/wondermagick would be more appropriate), nor does this demonstrate any interesting part of how to use the image crate.

@fintelia fintelia closed this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants