# JPEG-XL covers in media files

**URL:** <https://community.mp3tag.de/t/jpeg-xl-covers-in-media-files/56106>\
**Category:** Off-Topic\
**Created:** [January 28, 2022, 9:10pm UTC](https://community.mp3tag.de/t/jpeg-xl-covers-in-media-files/56106 "2022-01-28T21:10:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crissov](https://community.mp3tag.de/user_avatar/community.mp3tag.de/crissov/32/6619_2.png) [@Crissov](https://community.mp3tag.de/u/Crissov)\
**Post date:** [January 28, 2022, 9:10pm UTC](https://community.mp3tag.de/t/jpeg-xl-covers-in-media-files/56106/1 "2022-01-28T21:10:04Z")

</div>

Has anyone tried to embed JPEG XL images in MP3s and MP4s yet, perhaps even successfully?

I haven’t and I suppose Mp3tag doesn’t support it in any container format, therefore I’m posting in the OT category.

> **[JPEG XL](https://jpegxl.info/)**
>
> libjxl home page

> **[JPEG XL image format | Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/jpegxl)**
>
> "Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [January 28, 2022, 10:01pm UTC](https://community.mp3tag.de/t/jpeg-xl-covers-in-media-files/56106/2 "2022-01-28T22:01:43Z")

</div>

Could you please provide such a JPEG XL image to reproduce it?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [January 29, 2022, 7:18am UTC](https://community.mp3tag.de/t/jpeg-xl-covers-in-media-files/56106/3 "2022-01-29T07:18:53Z")

</div>

> [@Crissov](#):
>
> successfully

I wonder what a success would be:  
Get only the data into the file?  
Then display the picture?

As the ID3 standard talsk about png and jpg formats, I doubt that anything beside these 2 formats will lead to a successful display of the picture. Developers would have had to implement the xl codec in advance - which I doubt anybody has.  
But perhaps there is someone out there. To find that out is what gathered to be the purpose of this thread.

---

<div class="post-metadata">

**Author:** ![Crissov](https://community.mp3tag.de/user_avatar/community.mp3tag.de/crissov/32/6619_2.png) [@Crissov](https://community.mp3tag.de/u/Crissov)\
**Post date:** [January 29, 2022, 8:45am UTC](https://community.mp3tag.de/t/jpeg-xl-covers-in-media-files/56106/4 "2022-01-29T08:45:10Z")

</div>

I guess “success” is two-fold:

- Editing software, like Mp3tag, accepts `.jxl` files to embed inside `.mp3`, `.mp4` etc.
  - … using them verbatim.
  - … converting them on the fly to JPEG or PNG.

- Playback and management software displays JPEG XL images embedded into audio or video files.

Writing this on my phone, I don’t have sample files at hand. Surprisingly, I did not find an online test suite of JXL utilizing different features of the new format, e.g. [lossless JPEG transcoding](https://cloudinary.com/blog/legacy_and_transition_creating_a_new_universal_image_codec), animation or transparency.  
PS: Try this:

> **[GitHub - libjxl/conformance: Test bitstreams and reference decoded images for...](https://github.com/libjxl/conformance)**
>
> Test bitstreams and reference decoded images for conformance testing - GitHub - libjxl/conformance: Test bitstreams and reference decoded images for conformance testing

In the future, where enough playback software supports JXL, I’d also expect there to be an “optimize embedded pictures” tool that transcodes embedded JPEGs and PNGs to JPEG XL. This may or may not be an integral part of Mp3tag.

For me, intuitively, WebP is strongly related to MKV, because WebM is a derivative of the latter, while being ISO standards, JPEG and PNG (and JPEG XL) are closer to MPEG. However, that’s really nonsense.

Then there is [HEIF](https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format) (with HEIC, AVCF and AVIF), which are (photographic) image formats based upon the same ISOBMMF container as MP4s. I wouldn’t expect to use those for images embedded within audio or video (MPEG) files. However, I would assume that Mp3tag could be extended to support _tagging_ of such files with relatively little effort. (This may well be me being naive.)
