View Issue Details

IDProjectCategoryView StatusLast Update
0000309fileGeneralpublic2022-02-21 07:52
Reportermalat Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Summary0000309: Add support for JPEG-XL
DescriptionIt would be nice to add support for JPEG-XL :

```
% convert -size 512x512 -depth 8 xc:black black.pgm
% cjxl black.pgm black.jxl
% file black.jxl
black.jxl: data
```
Additional InformationHere is the typical bits to check:

* https://github.com/libjxl/libjxl/blob/main/plugins/mime/image-jxl.xml

```
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="image/jxl">
    <comment>JPEG XL image</comment>
    <comment xml:lang="fr">image JPEG XL</comment>
    <comment xml:lang="nl">JPEG XL afbeelding</comment>
    <magic priority="50">
      <match type="string" offset="0" value="\xFF\x0A"/>
      <match type="string" offset="0" value="\0\0\0\x0CJXL \x0D\x0A\x87\x0A"/>
    </magic>
    <glob pattern="*.jxl"/>
  </mime-type>
</mime-info>
```
TagsNo tags attached.

Activities

christos

2022-02-20 18:28

manager   ~0003703

What version of file are you using? The magic seems to be there in HEAD:
# fgrep -i JPEG * | fgrep -i xl
jpeg:# JPEG XL
jpeg:0 string \xff\x0a JPEG XL codestream
jpeg:# JPEG XL (transcoded JPEG file)
jpeg:0 string \x00\x00\x00\x0cJXL\x20\x0d\x0a\x87\x0a JPEG XL container

malat

2022-02-21 07:51

reporter   ~0003704

Indeed, I was using file from Debian/bullseye. Closing.

malat

2022-02-21 07:52

reporter   ~0003705

For reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004081

Issue History

Date Modified Username Field Change
2022-01-20 14:52 malat New Issue
2022-02-20 18:27 christos Assigned To => christos
2022-02-20 18:27 christos Status new => assigned
2022-02-20 18:28 christos Status assigned => feedback
2022-02-20 18:28 christos Note Added: 0003703
2022-02-21 07:51 malat Note Added: 0003704
2022-02-21 07:51 malat Status feedback => assigned
2022-02-21 07:52 malat Note Added: 0003705