metadata-extractor icon indicating copy to clipboard operation
metadata-extractor copied to clipboard

Add support for JPEG XL

Open tballison opened this issue 3 years ago • 4 comments

(Please include as much information as possible, and attach a sample image if possible.) I'm attaching two files, one with XMP and one with EXIF. They were both donated to the Apache Tika project by Tyler Thorsted.

https://issues.apache.org/jira/browse/TIKA-3562

http://fileformats.archiveteam.org/wiki/JPEG_XL

https://jpegxl.info/

tballison avatar Sep 30 '21 15:09 tballison

jxl.zip

tballison avatar Sep 30 '21 15:09 tballison

The larger two files were contributed by Tyler. The smallest file, I made with: https://github.com/surma/jxl-art/blob/main/LICENSE

tballison avatar Sep 30 '21 15:09 tballison

Seems to be the format of the future. 👍

StefanOltmann avatar Jan 07 '24 18:01 StefanOltmann

@drewnoakes

JXL, similar to HEIC and AVIF, is an ISO BMFF format. However, it distinguishes itself by incorporating dedicated boxes for Exif and XMP data.

Within my library, I have enhanced the HEIC image parser. It now includes a verification process where I inspect whether the major brand is 'jxl '. If this condition is met, the relevant information can be extracted from the 'Exif' and 'xml ' boxes.

https://github.com/Ashampoo/kim/blob/01fbb7825d3ccf53170c4625aad63b713614919e/src/commonMain/kotlin/com/ashampoo/kim/format/bmff/BaseMediaFileFormatImageParser.kt#L68-L69

https://github.com/Ashampoo/kim/blob/01fbb7825d3ccf53170c4625aad63b713614919e/src/commonMain/kotlin/com/ashampoo/kim/format/bmff/BoxReader.kt#L130-L134

Which approach would you prefer for metadata-extractor?

  1. Modifying the HeifReader specifically for handling the JXL case.
  2. Creating a modified copy of HeifReader dedicated to JXL, referred to as JxlReader.

StefanOltmann avatar Feb 03 '24 16:02 StefanOltmann