Originally posted by intelfx
View Post
Announcement
Collapse
No announcement yet.
Krita 5.1 Released With JPEG-XL Support, XSIMD For Better Paint Performance
Collapse
X
-
Originally posted by pkese View PostJpeg-XL is such a great tech:
- re-compressing existing Jpeg archives with zero quality degradation (bit perfect reproduction relative to original jpeg)
- very efficient lossless encoding (some 40% smaller files than PNG, 20% smaller files than lossless AVIF or WEBP)
- responsive web sites with single image for all resolutions
- change brightness, contrast, etc., without re-encoding pixel data
- small and lightweight enough to be used in embedded applications (other candidate image codecs bring in the bloat of a full video codec)
- less CPU intensive than video-based image codecs
Problem is that browser vendors are ignoring Jpeg-XL and rather pushing image encoders based on video codecs (e.g. AVIF), because they are integrating video codecs (AV1) anyway.
- Likes 1
Comment
-
Well, all this is great, but in reality... https://caniuse.com/jpegxl
No browser is supporting it, and definitely not the "old" operating system. So it won't be used before years, and probably never.
Comment
-
Originally posted by coder View PostI'm not saying the transcoded files won't be close. And for many, they'll likely be close enough. I just don't like seeing false claims driving a hype machine.
Code:> ./cjxl photo1.jpg photo1.jxl -d 0.0 -e 9 --lossless_jpeg=1 > ./djxl photo1.jxl photo1b.jpg > diff -bs photo1.jpg photo1b.jpg Files photo1.jpg and photo1b.jpg are identical > ls -al photo* -rw-rw-r-- 1 peter peter 6263118 Aug 19 15:06 photo1b.jpg -rw-rw-r-- 1 peter peter 6263118 Aug 19 15:04 photo1.jpg -rw-rw-r-- 1 peter peter 4958842 Aug 19 15:06 photo1.jxl
Last edited by pkese; 19 August 2022, 09:18 AM.
- Likes 1
Comment
-
Originally posted by coder View PostThere is a default, and someone could reasonably expect that JPEG-XL's transcoded output should match at least one of the three IDCT algorithms in libjpeg: ISLOW, IFAST, or FLOAT.
Originally posted by coder View PostWhat's theoretically possible is theoretically interesting. However, those desiring truly lossless conversion might be interested to know the practical reality.
Again, I'm just about setting expectations, here. Let's not sell JPEG-XL as being able to losslessly re-compress legacy JPEG, if the practical reality is that you don't get the exact same output. All it takes is a slight shift in language, to "reversibly re-compress". That's it.
Bugs in computer software is commonplace. If we hold everything by your standard, backward compatibility of any software updates / upgrades are also just "theoretically possible" and not "practical reality". While such scenario is often sadly true for Microsoft Office files, PDFs are a lot more resilient. You are giving no evidence that JPEG-XL format and the library are designed and implemented in Microsoft Office level competence, not PDF level competence. If we push the suspicion to its limit, even the reversibility is also just a theory. You could cast doubt forever until you exhaustively test all JPEG files in the world and claim JPEG-XL may not be reversible until your test completes.
Meanwhile, I choose to trust that the JPEG-XL work has been sufficiently peer-reviewed such that the reversibility has been proven mathematically. And then any bulk transcoding in datacenter will also be tested again with reversibility if the images are in important archive.
If you think JPEG-XL "don't get the exact same output", show an actual example to us then maybe some of us could file a bug report to JPEG-XL team.Last edited by billyswong; 19 August 2022, 11:19 AM.
- Likes 1
Comment
-
Originally posted by pkese View PostWhich part of the word lossless don't you understand?
Code:> ./cjxl photo1.jpg photo1.jxl -d 0.0 -e 9 --lossless_jpeg=1 > ./djxl photo1.jxl photo1b.jpg > diff -bs photo1.jpg photo1b.jpg Files photo1.jpg and photo1b.jpg are identical > ls -al photo* -rw-rw-r-- 1 peter peter 6263118 Aug 19 15:06 photo1b.jpg -rw-rw-r-- 1 peter peter 6263118 Aug 19 15:04 photo1.jpg -rw-rw-r-- 1 peter peter 4958842 Aug 19 15:06 photo1.jxl
I've been very explicit about my concern: the actual behavior most users expect, when they see word "lossless". So far, nobody has yet demonstrated this property.
Comment
-
Originally posted by pkese View Post
Which part of the word lossless don't you understand?
Code:> ./cjxl photo1.jpg photo1.jxl -d 0.0 -e 9 --lossless_jpeg=1 > ./djxl photo1.jxl photo1b.jpg > diff -bs photo1.jpg photo1b.jpg Files photo1.jpg and photo1b.jpg are identical > ls -al photo* -rw-rw-r-- 1 peter peter 6263118 Aug 19 15:06 photo1b.jpg -rw-rw-r-- 1 peter peter 6263118 Aug 19 15:04 photo1.jpg -rw-rw-r-- 1 peter peter 4958842 Aug 19 15:06 photo1.jxl
The codec was explicitly designed to support this behavior. It does that by skipping some of the new techniques used in JPEG-XL, and by saving a legacy reconstruction bitstream on the resulting JPEG-XL file. This bitstream makes sure that the resulting JPEG image will bit exactly the same as the original JPEG image. Of course that the cost will be a bigger file with less compression ratio when compared with a JPEG-XL without the “legacy” mode.
It is important to say that not all JPEG images can be re-encoded without loss. Since JPEG compression, together with its most used file formats (Exif and JFIF) and quite complex, and not every feature can be transcoded in a lossless way. But AFAIK it supports the most common use cases.
Last edited by amxfonseca; 19 August 2022, 01:12 PM.
- Likes 3
Comment
-
Originally posted by billyswong View PostThose are encoding algorithms.
Originally posted by billyswong View PostSince JPEG-XL is designed to have a lossless-transcoding-from-JPEG mode, any mismatch, if ever found, will be considered a bug.
Originally posted by billyswong View PostBugs in computer software is commonplace.
I've been pretty clear about my expectation for anything declaring itself to be "lossless", and it seems like you're now just trying to talk your way around the issue.
Originally posted by billyswong View PostMeanwhile, I choose to trust that the JPEG-XL work has been sufficiently peer-reviewed such that the reversibility has been proven mathematically.
Originally posted by billyswong View PostIf you think JPEG-XL "don't get the exact same output", show an actual example to us then maybe some of us could file a bug report to JPEG-XL team.
Comment
-
Originally posted by amxfonseca View PostThank you! I was tired of reading a bunch of crap,
Originally posted by amxfonseca View Postbut I was too lazy to grab a computer and install the encoder/decoder to demonstrate it.
Comment
-
Originally posted by ksec View PostWelcome the the world of Internet where the only righteous codec are those by AOM. As they are "Patent Free". And their supporter are absolutely against anything else.
That's not to say this thread is free of zealotry, however.Last edited by coder; 19 August 2022, 01:40 PM.
Comment
Comment