Exiftool cannot read JXL exifdata

Started by derneuere, June 04, 2023, 05:22:50 AM

Previous topic - Next topic

derneuere

First, thank you for this great piece of software!

I am the maintainer of LibrePhotos and got a couple of reports, that the EXIF reading does not work properly when using jxl files.

After investigating, I found out how to generate non-readable JXL files. Convert any image file with libjxl v0.8.1 using the following command:

cjxl -q 100 -e 9 "<imagefile>.jpg" "<imagefile>.jxl"

Operating systems used: Manjaro and Ubuntu 23.04

Command tested with exiftool version 12.60 and 12.62:

exiftool -ImageWidth -ImageHeight <imagefile.jxl>

It should return an Image Width and an Image Height:
Image Width                    : 1024
Image Height                    : 768

Instead, both version return nothing.

Sadly, I could not figure out where to find the error trace.

If you have any questions, let me know!




StarGeek

Can you share a sample image for those of use who don't have cjxl installed?
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

derneuere

Took me a while to find where to upload attachments, but here you go :)

Phil Harvey

#3
This file uses partial JXL codestreams and a 'brob' box, which ExifTool currently isn't able to process.  Unfortunately the JXL file format specification is imprisoned by the ISO, so figuring out how to decode this won't be easy, but I'll put it on my list of things to do.

I'll post any updates to this thread.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).