I want a return to an enforced norm of different extensions for lossy and lossless files. With the adoption of WebP, I've repeatedly encountered shady CDNs substituting in lossy .webp files in place of lossless .png files, in a way you can't tell by the filetype alone when saving a file (whereas you could tell when saving a .png URL but get a .jpg file instead). I fear the same will happen with .jxl files.
The lossy vs lossless distinction loses its meaning in the absence of provenance. You can compress a bitmap into a .jpg q=1, and then save it as a .png. The .png is technically lossless, but that clearly doesn't tell much about the image quality. Conversely, many cameras shoot JPEG as the source format. The .jpg is, in effect, the master copy from which the loss is measured (obviously there are losses from the sensor data, but still).
It wouldn't be effective in practice. There are tools like pngquant that does lossy compression of png. That shady CDN could just as easily recompress png files.
I voiced the exact same thing for many years and unfortunately the author of jxl doesn't agree with that. I wish the same as well we could just tell by file type.
Seems to be just a rumor, but one that I hope is true. I also hope they use it as an opportunity to finally fix the longstanding ugly wart of having Live Photos be a separate .MOV file sitting alongside the HEIC file. JPEG XL is a container format so it should be possible to include the MOV as a separate box alongside the jxlc data and exif metadata. Of course, HEIF had the same capability and they still didn’t use it.
Technically they could already do this as JPEG allows adding arbitrary data to the file after the image data. ZIP files allow arbitrary data BEFORE the image data, therefore a file can be a valid JPEG and ZIP at the same time. So all you need to do is to put the MOV into a ZIP and append that to the image file, done. Live Photos in a single file!
Btw., you can abuse the „unlimited“ „free“ photos storage that comes with Amazon Prime that way.
In addition to the compression, JPEG-XL has some nice features that make it better image format. It also does lossless compression. It does color spaces.
One cool feature is that can losslessly convert JPEG into JPEG-XL. And back to JPEG. I can't tell if this applies to all or only converted ones, but it might make good source format and convert to JPEG on export.
For images at low bit per pixel, HEIC is actually quite a bit better than JPEG-XL current encoder. I wouldn't say really an upgrade technically speaking, I would put them on same level with XL have some additional interesting feature.
But considering getting HEIC included in other system seems to be difficult due to patents or other reasons. JPEG-XL seems to be the best middle ground in everything.
I am still hoping there could be additional work on JXL in terms of low bit per pixel improvement and encoding / decoding resource usage. Especially in the lossless front.
Yes, the progressive rendering is really cool, lossless mode is better, lossless recompression of JPEGs is a cool feature, it's faster, it supports larger images (without tiling) with more channels and higher bit depths.
Compared to the stark differences between BMP/JPG/PNG/GIF, there's a ton of overlap between WEBP/HEIC/AVIF/JPEGXL.
Naturally, some types of images tend to compress better with some formats than others, and then you may have to take into account things like the desired quality level, encoding time, etc.
Realistically, any of those four new formats would be fine for 99% of the images that exist, but it would still be nice for every browser to support them all so that web developers can choose their favorite format.
Although, on the flip side, the drawback of having so many formats floating around is that software developers have to spend more time supporting it all. Even trillion dollar companies like Microsoft are seemingly in no rush to make sure that formats like WebP are as well integrated into their software as JPG/PNG were.
Interestingly, when visiting the JPEG-XL test page referenced in the article, everything renders but the animation at the bottom for JPEG-XL doesn’t move. The others do. iPhone 15 pro on safari
In which case Google and Microsoft are sure to immediately cease any work on supporting this open format, just so that they can claim Apple is unfairly preventing interoperability.
24 megapixel almost-lossless photos dumped straight from the camera are too heavy to be used directly on the Web. They also have lots of metadata including GPS location, that people usually don't want to share.
In practice you'd want to resize it (HD is 2mpx, and 4K resolution is 8mpx), and recompress to quality suitable for viewing not editing (makes huge difference in file size).
The necessary recompression step makes the input format mostly irrelevant. The upside is that JPEG XL is free to use, so it's possible to legally write tooling using it without touching the mess of H.265 patents.
macOS 14 / Safari 17.6 shows static pics, but no animation.
Honestly, I wish all animated image formats would just die. They are an inefficient way to animate images, because they only use intra frames. H.264, H.265 or AV1 should be used for animations. Fortunately, Safari can display video files in <img> or CSS images, which makes all animated image formats unnecessary.
Yes, it does. It's a limited sort of animation like GIFs were; JPEG XL is not derived from video codecs like WebP, AVIF, and HEIF are, where those formats include "animation" by really breaking out of being a subset and just being the regular intraframe video codec.
[+] [-] nyanpasu64|1 year ago|reply
[+] [-] _answ|1 year ago|reply
[+] [-] vinkelhake|1 year ago|reply
https://pngquant.org/
[+] [-] londons_explore|1 year ago|reply
It's kinda just lousy OS's which aren't correctly storing the mime type for each file.
[+] [-] ksec|1 year ago|reply
[+] [-] catoc|1 year ago|reply
[+] [-] jl6|1 year ago|reply
[+] [-] pretext-1|1 year ago|reply
Btw., you can abuse the „unlimited“ „free“ photos storage that comes with Amazon Prime that way.
[+] [-] AdamJacobMuller|1 year ago|reply
[+] [-] ianburrell|1 year ago|reply
One cool feature is that can losslessly convert JPEG into JPEG-XL. And back to JPEG. I can't tell if this applies to all or only converted ones, but it might make good source format and convert to JPEG on export.
[+] [-] ksec|1 year ago|reply
But considering getting HEIC included in other system seems to be difficult due to patents or other reasons. JPEG-XL seems to be the best middle ground in everything.
I am still hoping there could be additional work on JXL in terms of low bit per pixel improvement and encoding / decoding resource usage. Especially in the lossless front.
[+] [-] modeless|1 year ago|reply
[+] [-] jerryX|1 year ago|reply
[+] [-] cornstalks|1 year ago|reply
And quality wise, JPEG XL is definitely better
[+] [-] Pikamander2|1 year ago|reply
Naturally, some types of images tend to compress better with some formats than others, and then you may have to take into account things like the desired quality level, encoding time, etc.
https://cloudinary.com/blog/time_for_next_gen_codecs_to_deth...
Realistically, any of those four new formats would be fine for 99% of the images that exist, but it would still be nice for every browser to support them all so that web developers can choose their favorite format.
Although, on the flip side, the drawback of having so many formats floating around is that software developers have to spend more time supporting it all. Even trillion dollar companies like Microsoft are seemingly in no rush to make sure that formats like WebP are as well integrated into their software as JPG/PNG were.
[+] [-] sunflowerfly|1 year ago|reply
[+] [-] aidenn0|1 year ago|reply
[+] [-] MBCook|1 year ago|reply
I’m with you. No normal person is waiting for this. Are any techies? Like maybe 2?
The article says the JPEG would be a third the size they are now. OK. That’s nice.
But only 12.5% of Internet users can seem ‘em. All of ‘em Apple users.
https://caniuse.com/?search=jpeg-xl
So what’s the point? Just use HEIC. It’s supported by the exact same browsers. All Safari and nothing else.
This seems like a really sketchy rumor to me.
[+] [-] 486sx33|1 year ago|reply
[+] [-] jiggawatts|1 year ago|reply
[+] [-] butz|1 year ago|reply
[+] [-] pornel|1 year ago|reply
In practice you'd want to resize it (HD is 2mpx, and 4K resolution is 8mpx), and recompress to quality suitable for viewing not editing (makes huge difference in file size).
The necessary recompression step makes the input format mostly irrelevant. The upside is that JPEG XL is free to use, so it's possible to legally write tooling using it without touching the mess of H.265 patents.
[+] [-] pretext-1|1 year ago|reply
https://www.phoronix.com/news/Chrome-JPEG-XL-Seconds
[+] [-] guidedlight|1 year ago|reply
https://jpegxl.info/test-page/
At the bottom of the page it has animation demonstration, that doesn’t appear to work on my iPhone 13 Pro.
Does JPEG-XL really include animation support?
[+] [-] voisin|1 year ago|reply
[+] [-] gardaani|1 year ago|reply
Honestly, I wish all animated image formats would just die. They are an inefficient way to animate images, because they only use intra frames. H.264, H.265 or AV1 should be used for animations. Fortunately, Safari can display video files in <img> or CSS images, which makes all animated image formats unnecessary.
[+] [-] chungy|1 year ago|reply
Yes, it does. It's a limited sort of animation like GIFs were; JPEG XL is not derived from video codecs like WebP, AVIF, and HEIF are, where those formats include "animation" by really breaking out of being a subset and just being the regular intraframe video codec.
[+] [-] slimsag|1 year ago|reply
[+] [-] taspeotis|1 year ago|reply
iOS 17.6.1
[+] [-] M-Valentino|1 year ago|reply
[+] [-] The_Colonel|1 year ago|reply
JPEG-XL has a lossless mode if that's what you're after ...
[+] [-] t-writescode|1 year ago|reply
Images, by their nature, are far more fluid, which is why a FFT-based compression algorithm, like the one in jpegs, makes sense for photos.
[+] [-] xnyan|1 year ago|reply