TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How JPEG XL compares to other image codecs

156 pointsby bentocorp7 months ago

13 comments

Uncorrelated7 months ago
Articles about the merits of JPEG XL come up with some regularity on Hacker News, as if to ask, &quot;why aren&#x27;t we all using this yet?&quot;<p>This one has a section on animation and cinemagraphs, saying that video formats like AV1 and HEVC are better suited, which makes sense. Here&#x27;s my somewhat off-topic question: is there a video format that requires support for looping, like GIFs? GIF is a pretty shoddy format for video compared to a modern video codec, but if a GIF loops, you can expect it to loop seamlessly in any decent viewer.<p>With videos it seems you have to hope that the video player has an option to loop, and oftentimes there&#x27;s a brief delay at the end of the video before playback resumes at the beginning. It would be nice if there were a video format that included seamless looping as part of the spec -- but as far as I can tell, there isn&#x27;t one. Why not? Is it just assumed that anyone who wants looping video will configure their player to do it?
评论 #41959417 未加载
评论 #41960688 未加载
评论 #41959932 未加载
评论 #41959458 未加载
评论 #41961926 未加载
Dwedit7 months ago
JPEG XL is three different codecs in one.<p>There is a lossless ultra-packer for existing JPEG files. It&#x27;s completely reversible, you can get byte-for-byte identical JPEGs back.<p>Then there is &quot;VarDCT&quot; mode, which acts like JPEG, lossy Webp, or video codecs.<p>Then there is &quot;Modular Mode&quot;, a completely different kind of codec that has different kinds of compression artifacts than JPEG-like codecs. The compression artifacts you see tend to be more like sections becoming more pixelated, or slight color differences. Strong edges don&#x27;t have ringing artifacts. Modular mode mainly is used for lossless compression, but also allows lossy compression.
评论 #41959825 未加载
评论 #41959762 未加载
评论 #41959341 未加载
SG-7 months ago
I believe JPEG XL is now supported in macOS 15 and iOS18.<p>edit: previous discussion about it <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41598170">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41598170</a>
评论 #41960646 未加载
jonsneyers7 months ago
This article is from 2020. I think so far it has aged reasonably well. But you might be interested in my more recent articles too. You can find those here: <a href="https:&#x2F;&#x2F;cloudinary.com&#x2F;blog&#x2F;author&#x2F;jon_sneyers" rel="nofollow">https:&#x2F;&#x2F;cloudinary.com&#x2F;blog&#x2F;author&#x2F;jon_sneyers</a>
评论 #41961613 未加载
morpheuskafka7 months ago
I found this interesting note in the article:<p>&gt; HEIC and AVIF can handle larger [than 35MP, 8MP respectively] images but not directly in a single code stream. You must decompose the image into a grid of independently encoded tiles, which could cause discontinuities at the grid boundaries. [demo image follows].<p>The newest Fujifilm X cameras have HEIC support but also added 40MP sensors--does this mean they are having to split their HEIC outputs into two encoding grids?<p>It seems like the iPhone avoided this, as 48MP output is only available as a &quot;ProRAW&quot; i.e. RAW+JPEG, which previously used regular JPEG and now JPEG-XL, but never HEIC.
firecall7 months ago
Will JPEG XL support return to Chrome?<p>Apple supporting it surely has to be a signal to begin wider adoption!?
评论 #41960205 未加载
评论 #41959644 未加载
评论 #41962048 未加载
评论 #41960083 未加载
Animats7 months ago
JPEG XL is supposed to be a progressive mode. Can you read a lower resolution from the file by reading only part of the file, as you can with JPEG 2000? Is there a header which tells you how much file to read for the desired resolution?
评论 #41960771 未加载
gforce_de7 months ago
Something seems wrong im this article. The side-by-side comparison shows 4 formats:<p><pre><code> · Original PNG image (2.6 MB) · Name &quot;high_fidelity.png&quot;, but in fact 298.840 bytes and format: JPEG · JPEG XL (default settings, 53 KB): indistinguishable from the original · Name &quot;high_fidelity.png.jxl.png&quot;, but in fact 3.801.830 bytes and format: PNG · WebP (53 KB): some mild but noticeable color banding along with blurry text · Name &quot;high_fidelity_webp.png&quot;, but in fact 289.605 bytes and format PNG · JPEG (53 KB): strong color banding, halos around the text, small text hard to read · Name &quot;jpeg_high_fidelity.jpg&quot;, but in fact 52.911 bytes and format JPEG </code></pre> The comparison does not make any sense, everything is just wrong. Also when encoding the large original PNG image to AVIF, it has only 20.341 Bytes with no visual change, see: <a href="http:&#x2F;&#x2F;intercity-vpn.de&#x2F;files&#x2F;2024-10-27&#x2F;upload&#x2F;" rel="nofollow">http:&#x2F;&#x2F;intercity-vpn.de&#x2F;files&#x2F;2024-10-27&#x2F;upload&#x2F;</a>
评论 #41961009 未加载
评论 #41960999 未加载
评论 #41961173 未加载
评论 #41961705 未加载
theandrewbailey7 months ago
(2020)
JyrkiAlakuijala7 months ago
JPEG XL is seeing strong industrial adoption where image quality matters: professional and prosumer image acquisition (as a replacement, with huge benefits, of traditional raw imaging in iPhone 16 Pro) and processing and storage reduction with Digital Negative, ProRAW and medical imaging with DICOM. Clinics with archiving and telemedicine needs benefit massively.
Theodores7 months ago
Few realise that JPEG was designed for flickery low resolution analogue CRTs and slow CPUs. Nowadays we have digital high resolution screens and fast CPUs.<p>JPEG XL has been coming soon for as long as I can remember.<p>Nowadays I like to serve webP from a CDN with the filenames being .jpg even though it is a .webp. This means listening to the request headers and serving what is supported.<p>If someone right clicks and downloads then they get a genuine JPEG, not a webp. Same if they do a &#x27;wget&#x27;. This is because the headers are different, with webp not supported.<p>Browsers do not care about filename extensions. Hence you can serve a webP as &#x27;example.jpg&#x27;.<p>The benefits of doing this, and having the CDN send the request headers to the origin server (for it to encode webp on the fly) is that the rest of the team, including those that upload images can work entirely in the JPG space they know.<p>The mozjpeg encoder is really neat but all browsers support webp these days. Mozjpeg is JPEG for digital hi-res screens and fast CPUs. Brilliant, but too late.<p>What I am interested in now is larger colour spaces than sRGB. This requires a whole toolchain that supports P3 (or whatever) too.<p>I tried AVIF but in practical testing, webP was simply better.<p>JPEGLI from Google is what I want for the toolchain with the CDN supplying webp. Nobody cares about your images in the vast majority of applications and it is just best to go for highly compressed webp with artefacts just about to cut in. You also have retina nowadays, so using all those pixels, typically 1.5x, is better than 1x. More pixels is a better trade off.
评论 #41960903 未加载
评论 #41960037 未加载
评论 #41960979 未加载
评论 #41960940 未加载
greenavocado7 months ago
I investigated using JPEG XL for high speed applications but encoding time was much slower than JPEG with libturbojpeg even if you reduce encoder complexity to a minimum
评论 #41959205 未加载
评论 #41959283 未加载
评论 #41960546 未加载
hulitu7 months ago
&gt; The JPEG XL reference encoder (cjpegxl) produces, by default, a well-compressed image that is indistinguishable from (or, in some cases, identical to) the original. In contrast, other image formats typically have an encoder with which you can select a quality setting, where quality is not really defined perceptually.<p>We are the best, so fuck the rest. &#x2F;s<p>Using vague language to claim superiority is not a sign of inteligence.