View Issue Details

IDProjectCategoryView StatusLast Update
0000405fileGeneralpublic2022-12-02 17:42
Reportereagr Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.43 
Fixed in Version5.44 
Summary0000405: Wrong mime for JPEG XL images
DescriptionThe mime type for JXL images has been incorrectly redefined as image/x-jxl by the b62c39d1e13a7547e634ce36272f94f3fd39cbc4 commit

Instead, it should be defined as image/jxl
- As such it used to be before the aforementioned commit
- As provided by the URL in the magic/Magicdir/jpeg comment to the JXL-related definitions: http://fileformats.archiveteam.org/wiki/JPEG_XL
- As there is no definition for image/x-jxl anywhere in the official JPEG XL reference implementation. There is, however, an image/jxl mime definition:
https://github.com/libjxl/libjxl/blob/main/plugins/mime/image-jxl.xml

The mistake causes image viewers such as XFCE Ristretto, that rely on file, to be unable to load JXL images because the gdk-pixbuf loader from the JXL reference implementation which they also employ only understands the image/jxl mime.
https://github.com/libjxl/libjxl/tree/main/plugins/gdk-pixbuf
Steps To Reproduce- Have installed ristretto and libjxl, jxl-pixbuf-loader as well if the distro provides the pixbuf loader in a separate package
- Try open a JPEG XL image with ristretto

Reproducible on a fresh archlinux install.
Additional InformationSetting the JXL mime in magic/Magicdir/jpeg back to image/jxl makes things work again.
TagsNo tags attached.

Activities

christos

2022-12-02 17:42

manager   ~0003869

thanks

Issue History

Date Modified Username Field Change
2022-11-15 23:04 eagr New Issue
2022-12-02 17:42 christos Assigned To => christos
2022-12-02 17:42 christos Status new => assigned
2022-12-02 17:42 christos Status assigned => resolved
2022-12-02 17:42 christos Resolution open => fixed
2022-12-02 17:42 christos Fixed in Version => 5.44
2022-12-02 17:42 christos Note Added: 0003869