Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884263 - media-gfx/imagemagick: Add support for JPEGXL (JXL)
Summary: media-gfx/imagemagick: Add support for JPEGXL (JXL)
Status: RESOLVED DUPLICATE of bug 853226
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-04 10:23 UTC by Thomas Fischer
Modified: 2023-03-10 06:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Fischer 2022-12-04 10:23:13 UTC
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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-10 06:59:50 UTC

*** This bug has been marked as a duplicate of bug 853226 ***