Find a file
2026-08-01 12:57:41 +09:00
.SRCINFO feat: add support for more input formats 2026-08-01 12:57:41 +09:00
010-jpegli-disable-exe-static-linking.patch Match latest upstream changes 2026-07-18 21:49:35 -03:00
020-jpegli-enable-jxl-input.patch feat: add support for more input formats 2026-08-01 12:57:41 +09:00
PKGBUILD feat: add support for more input formats 2026-08-01 12:57:41 +09:00
README.md feat: add support for more input formats 2026-08-01 12:57:41 +09:00

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.cc and jxl.h;
  • connects JXL detection and decoding to the existing extras decoder;
  • adds the JPEGLI_ENABLE_JXL CMake option; and
  • finds and links system libjxl through 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).