Currently, support for JPEG XL is disabled in media-gfx/imagemagick-7.1.0.44 and -7.1.0.48 as the configuration option --without-jxl is used. However, ImageMagick itself supports this format to a sufficient degree by using media-libs/libjxl which Gentoo has a stable package (media-libs/libjxl-0.7.0_pre20220825). Taking inspiration how the package for media-gfx/graphicsmagick has support for JPEG XL configured, the following changes suffice to enable support in ImageMagick: 1. Add jpegxl to variable IUSE to make JPEG XL support conditional. 2. Add jpegxl? ( media-libs/libjxl:= ) to variable RDEPEND 3. Replace --without-jxl with $(use_with jpegxl jxl) To verify JPEG XL support is working, fetch some example .jxl files (e.g. from https://github.com/thebombzen/jxlatte/tree/main/samples) and view those files using ImageMagick's display program. Reproducible: Always
*** This bug has been marked as a duplicate of bug 853226 ***