libjxl.dll Error in Windows 10 and 11: JPEG XL image import errors

A photo editor opens standard formats but fails when opening a JPEG XL file, or crashes when enumerating its image codecs.
What this DLL does
MSYS2 Windows builds of libjxl provide JPEG XL codec components for apps that support the format.
Start with this check
Check whether the editor version documents JPEG XL support and try a small known-good JXL file. Record which module or image operation appears in the error.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
An older editor may simply lack JPEG XL support. Confirm its documented formats before reinstalling runtime components.
Choose the repair that fits
Restore the application’s matching image codecs through its vendor. For a supported MSYS2 build, repair the complete JPEG XL package and its listed dependencies.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Open the original test image and confirm size and color. If the app supports writing JXL, export a disposable test and reopen it.
For a related check, see windowscodecs.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: MSYS2’s Windows JPEG XL package manifest.