- Shell 100%
| .SRCINFO | ||
| 010-jpegli-disable-exe-static-linking.patch | ||
| 020-jpegli-enable-jxl-input.patch | ||
| PKGBUILD | ||
| README.md | ||
jpegli-git
Arch Linux package for jpegli-git, with support for more input formats:
- png
- jpg
- gif
- jxl
Upstream: https://aur.archlinux.org/jpegli-git.git
JPEG XL input support
020-jpegli-enable-jxl-input.patch adds optional JPEG XL input decoding to
cjpegli. It is a local patch against jpegli commit 031a007 and may need to
be refreshed as the jpegli-git package advances.
The patch:
- adds
lib/extras/dec/jxl.ccandjxl.h; - connects JXL detection and decoding to the existing extras decoder;
- adds the
JPEGLI_ENABLE_JXLCMake option; and - finds and links system
libjxlthrough pkg-config.
The two new decoder files were written specifically for this patch. They were
not copied from libjxl's larger lib/extras/dec/jxl.cc implementation. They use
libjxl's public decoder API and follow the structure and license header of the
existing jpegli extras decoders. The CMake and dispatch changes are also
custom integration changes.
Current scope is intentionally small: one non-animated image with one or three color channels. Alpha and other extra channels are discarded. ICC color data is retained, but JXL container metadata such as EXIF, XMP and JUMBF is not copied to the output JPEG.
The PKGBUILD enables the feature with -DJPEGLI_ENABLE_JXL=true and declares
libjxl as a runtime dependency. When the option is disabled, the added
decoder builds as an unsupported-codec stub.
Disclaimer
The patch is crafted with the assistance of an LLM agent (codex, gpt-5.6-sol).