Top
Best
New

Posted by AshleysBrain 11 hours ago

Shipping JPEG XL in Chrome(developer.chrome.com)
445 points | 288 commentspage 3
tsuru 8 hours ago|
Any way for those who enjoy dynamic languages (non-Python) to call it via FFI?
anonymous344 5 hours ago||
how about an option to block that "update address?" dialog on domain basis???
chuliomartinez 7 hours ago||
Is jpegxl support in canvas toBlob planned?
codingjoe 11 hours ago||
Is this the same patent/license nightmare as JPEG2000 ?
videah 10 hours ago|
No, JPEG XL is an open standard.
201984 10 hours ago|||
"open" in the sense that you have to pay $200 to read it, anyway.
codingjoe 10 hours ago|||
That's good to hear. Let's hope there's hardware adoption on the camera end soon. As an image lib maintainer the codec wars were driving me nuts.
llm_nerd 4 hours ago||
Kind of orthogonal, but note that JXL creation tools are still uneven. Affinity, for instance, has terrible JXL creation. I don't know what they're using, but it's glitchy, and yields horrible compression levels relative to the quality, and I know a number of people that were soured on JXL purely because Affinity is a poor source for it.

For that tool you need to output an uncompressed target and use the reference command line tools, preferably libjxl and cjxl (which is still the reference, while jxl-rs remains the experimental), to create the JXL. You will have better compression with better quality, minus the glitches.

shevy-java 10 hours ago||
About three years ago I had to find a replacement for old .jpg files and .png files.

The main two contenders were .avif and .webp. For a few reasons, I selected .avif and in hindsight I think it was the better, choice. Both would be objectively better than jpg or png.

With JPEG XL ... hmmm. AVIF is not perfect, in particular when the compression rate is very high I noticed that some photos lose a lot of intrinsic quality that is not instantly obvious; I noticed this when I took various pictures over the years from outdoors. Still, AVIF beats jpg and png just about on every metric when compression is required. With JPEG XL I guess I have to re-evaluate, but right now I am still sticking to avif. The two factors that will be important for me is compression ratio and quality. I am ok with a bit of loss of quality, if the compression is better, but I am not sure JPEG XL beats AVIF here clearly either, so I am not sure what to do with JPEG XL.

F3nd0 8 hours ago|
Both JPEG XL and WebP far exceed AVIF when it comes to lossless. For lossy, AVIF used to do better at low quality and JPEG XL at high quality. But apparently AV1 encoders have improved a lot since then, closing the distance. An article comparing the two was posted recently:

https://news.ycombinator.com/item?id=49690554

The author, who has worked on said AV1 encoders, has expressed doubt that JPEG XL encoders could improve much with only reasonable amounts of effort, but that was also only their personal (if educated) guess. With JPEG XL finally seeing adoption on the web, we will hopefully see work on the reference encoder resume in earnest soon.

So for now, I’d say you’re fine with AVIF. Unless you’re doing lossless, because AVIF sucks at lossless. (And JPEG XL has the unique feature of supporting lossless JPEG transcoding, too.)

sylware 11 hours ago||
I thing the endgame is lossless PNG with 16bit color components with basic compression like gzip or at best bzip2. Or a format without the weirdness of PNG 'line based loading' which is obsolete nowdays. The "expensive part", apart from the compression algorithm, being the meta data storage without kludge.
mrob 10 hours ago||
>without the weirdness of PNG 'line based loading' which is obsolete nowdays

How? Line-based loading is a very simple way to exploit 2D spatial coherence. A 1D format like gzip loses this advantage for minimal gain in simplicity.

groundzeros2015 6 hours ago|||
You can’t just ignore signal compression algorithms unless you are fine allocating 4-5x more bandwidth to images.
pmarreck 10 hours ago|||
I believe 7zip outdoes bzip2 these days along every metric

And lossless jpeg-xl exceeds your idea

ciupicri 7 hours ago|||
7zip meaning what, LZMA (xz)?
dist-epoch 7 hours ago|||
and zstandard outdoes 7zip (LZMA)
apopapo 10 hours ago|||
These days I favour lossless WEBP instead of PNG. I often save around 30%~40% of file size compared to PNG, especially when the PNG is encoded with lots of bits per pixel (i.e 48 bits or 24 bits).
F3nd0 8 hours ago||
I think that’s why they were advocating for gzip or bzip2 instead of just relying on PNG’s built-in compression.
atomicthumbs 1 hour ago||
how about lossless JPEG XL
rfgplk 8 hours ago||
Fun fact, I needed JPEG XL support for my C++ pipeline and I didn't feel like including any official libraries. Roughly $500 tokens later I had a fully working optimized JPEG XL spec compliant en/de/coder that outperformed the official codepaths (both cpp and rust) by 70% (lower runtime). Took literally 5 hours to build out. Can someone tell me what Google is doing?
groundzeros2015 6 hours ago||
So do you think your implementation is better? Or there are finer parts of the spec it’s missing?

Your llm has JPEG xl programs in the training data. You copied from GitHub.

dtf 8 hours ago||
Does it satisfy the rule of two?
BugsJustFindMe 8 hours ago|||
> Does it satisfy the rule of two?

One to embody power, the other one to crave it?

I'm confused about the connection.

erikvanoosten 8 hours ago||
Two safety protection mechanisms. For example: Rust + Sandbox.
groundzeros2015 6 hours ago||
If it’s sandboxed why do I need rust?

What counts as a “safety mechanism”?

dtf 6 hours ago||
It's the "rule of two" safety guideline mentioned and linked to in the article:

https://chromium.googlesource.com/chromium/src/+/main/docs/s...

If you use a safe language like Rust, you can afford untrusted input and no sandboxing.

If you use an unsafe language such as C++, you must chose between trusted inputs or sandboxing.

I was curious as to where rfgplk's implementation lay within the Venn diagram.

groundzeros2015 5 hours ago||
What counts as two safety mechanisms?

> you can afford untrusted input and no sandboxing.

I would not trust a rust program un-sandboxed! There are security bugs in rust itself.

rfgplk 6 hours ago|||
Yep.
tristor 4 hours ago||
Now I just want Flickr to support uploading JXL since I do JXL export as my primary long-term storage format for final images. Would be great if Canon also added JXL support to their photo printer software.
More comments...