Can JPEG XL Become the Next Free and Open Image Format? (jpeg.org) 106
"JPEG XL looks very promising as a next gen replacement for JPEG, PNG and GIF," writes icknay (Slashdot reader #96,963):
JPEG was incredibly successful by solving a real problem with a free and open format. Other formats have tried to replace it, notably HEIF which will never by universal due to its patent licensing.
JPEG XL combines all the modern features, replacing JPEG PNG and GIF and has free and open licensing. The linked slides from Jon Sneyers review the many other attempts at replacing JPEG plus the obligatory XKCD standards joke.
JPEG XL combines all the modern features, replacing JPEG PNG and GIF and has free and open licensing. The linked slides from Jon Sneyers review the many other attempts at replacing JPEG plus the obligatory XKCD standards joke.
You mean like JPEG 2000? (Score:4, Insightful)
JPEG2k (Score:4, Insightful)
I thought JPEG 2000 was only meant to replace lossless formats for professional photography, like TIFF. I think JPEG XR is meant to replace JPEG for photos, along with PNG for graphical elements.
Re: (Score:2)
JPEG2000 included some improvements in compression as well. It was designed as an all around replacement for JPEG with the benefit of 16bit colour support, and optional lossless compression level.
Re: (Score:1)
Re: (Score:2)
It is also imminently flexible, allowing you to provide your own wavelet transforms, colorspac
Re: (Score:1)
and JPEG XR
Re:You mean like JPEG 2000? (Score:4, Insightful)
No. As TFA points out, this isn't like JPEG 2000.
JPEG 2000 had numerous issues. No open source reference implementation at first. It was slow and the compression wasn't that much better than JPEG, and the visual quality wasn't great. It couldn't replace other image formats like PNG and GIF well either.
Re: (Score:2)
JPEG2000 is a very capable format. It has a numerical lossless compression, so it could replace PNG. The visual quality greatly depends on the amount of compression used, and that is very configurable. More bits/pixel tends to result in better quality, but even at low bpp rates, the images are generally quite good.
Importantly, the images can be absolutely huge. Much bigger than JPEG or PNG compressions. It allows for up to 2^32-1 pixels (2.1 billion!) in each dimension. JPEG is limited to 2^16-1 (65535
Re: You mean like JPEG 2000? (Score:2)
For video, Digital Cinema Initiatives (DCI) uses JPEG 2000, and thereâ(TM)s also Motion JPEG2000.
Re: (Score:2)
JPEG2000 is used extensively for Digital Cinema distribution. Every digital cinema is using it.
Re: (Score:2)
Re: (Score:2)
Each frame of the video is compressed to JPEG2000 in xyz colour space, then those frames are wrapped into an MXF container. Ditto audio,
Editing suites like Premiere Pro can convert the MPEG2 frames of video directly into JPEG2000, but there are open-source tools that can do the conversion. Use ffmpeg to extract the video frames to uncompressed TIFF frames, then Imagemagick to convert to JPEG2000, then a tool called OpenDCP can do the rest.
Sure, just like anyone can become president (Score:2, Insightful)
The fact we have a number of image formats isn't a big problem. A new image format has to solve a problem. JPEG took off because it was the "best" photographic compressor at the time when we needed one.
Re:Sure, just like anyone can become president (Score:4, Funny)
Can you imagine if we were still using a format JPG 2000? I would feel like it was the
Re:Sure, just like anyone can become president (Score:5, Informative)
And PNG took off because it was a replacement for GIF at a time when people were getting sued for using GIF.
"Took off" is sort of relative. It's pretty ubiquitous and well-supported today, but you might recall that it was a major slog getting the format adopted by all the major browsers. In particular, Internet Explorer dragged their heels for many years - no surprise there I guess. And png support in some otherwise prominent image editors was half-assed for quite a while.
Re: (Score:2)
That in itself is a roadblock but not a great driver for support. WebP is also supported by all major browsers and many (most?) image editors, but more rare than a GIF on the modern internet despite its obvious advantages over JPEG.
Safari still doesn't support WebP (Score:2)
WebP is also supported by all major browsers
Edge didn't support WebP until version 18, released in November 2018. Firefox didn't support WebP until version 65, released in January 2019, and Debian is still shipping version 60 (but should be updating to 68 by sometime in October). Apple Safari, with 41% usage share in the United States according to caniuse [caniuse.com], still doesn't.
Re: (Score:2)
Re: (Score:2)
Re: (Score:1)
and this one does - not only is it "legacy friendly" (ie it will take the old image formats, recode them and will always make smaller image sizes due to the way it recognises each old format) but it creates "responsive" images - ie you can download only part of the file and get a progressively bigger image. The slides showed the same image in different sizes, the more you download the better image you get - not the more your download the less fuzzy the image gets as with current progressive jpeg.
Might be th
Re: (Score:2)
Legacy friendly (Score:2)
You mean it will work on my Commodore 64 and Amiga?
Re: (Score:3, Interesting)
You mean it will work on my Commodore 64 and Amiga?
Yes. RTFA.
There is a fast server-based auto-downgrader. So if you connect to a site with an older browser, the server will convert the JPEG-XL to a legacy format on the fly.
Never? (Score:2)
Patents expire, right? I know that 20 years is a long time, but some of that has elapsed already, and look how long the other formats listed here (JPEG, GIF, PNG) have lasted.
Re: (Score:2)
Are you willing to wait for 2033 to launch your product?
Re: (Score:2)
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
DjVu's compression scheme JB2 is known to have issues similar to JBIG2. Improper use of JBIG2 caused Xerox Scanners to change numbers [dkriesel.com] on scanned documents, and I wouldn't want to touch a similar compression scheme that could substitute similar looking symbols to save space.
Re: (Score:2)
We already have webP (Score:5, Insightful)
And webp already has fairly wide support in browsers
https://caniuse.com/webp [caniuse.com]
https://en.wikipedia.org/wiki/... [wikipedia.org]
Re:We already have webP (Score:4, Informative)
WebP isn't good for general purpose image encoding though. It's limited to 8 bits per pixel, 16kx16k resolution and only supports 4:2:0. It doesn't support progressive decoding either, which is becoming more and more of a big deal as 4k displays get more common and web sites want to offer images that work for everything from low resolution smarphones up.
Re: (Score:2)
WebP does have the "Fancy Upscale" chroma mode, and that really does look a lot better than vanilla 4:2:0 subsampling, provided you give it enough bits.
Older versions of the program did not support it, and it might not be obvious how to turn that feature on.
The classic test case for how good chroma subsampling is a red circle on a white background. If you have bad subsampling, you get dark edges around the place where they intersect. When you use the default 4:2:0 subsampling, you get the nasty edge artif
Re: (Score:2)
Re: (Score:1)
"Supported - but not on Safari/iOS" is not supported. As much as I wish we could ignore Safari, or that Apple would get their butts in gear, neither is the case.
Lossy + Alpha is a combination I very much need for GIS reasons. If WebP were up at 99% browser support, we'd switch to it. Since it's not, a lot of GIS software for raster overlay does a hack of tiling where fully-filled tiles come across as JPG (since we're fine with lossy) and the tiles that are partially-filled (irregular edge cuts) come out
Re: (Score:2)
Instead of waiting for Apple to support a lossy-with-alpha file format, you could produce your own decoder for a lossy-with-alpha format in C++ and include it in a GIS viewer as a native iOS application that you develop and submit to Apple for approval. Users of all operating systems other than iOS would get the WebP, and users of iOS would get a link to the App Store.
Re:We already have webP (Score:4, Interesting)
WebP is well supported because it was made by Google, and Google forces support in Chrome, the world's most popular web browser. However, nobody actually uses the damn format.
It's a massive PITA to support. I tried adding support for WebP for my image board, which involves getting the dimensions of an image. This is not trivial by any stretch of the imagination, and requires a lot of low-level bit twiddling. Also, WebP has multiple ways (at least 3) to encode the size even when there's only one image in a file. When just getting the x and y dimensions of an image requires pulling teeth, you know someone really screwed up.
WebP is another typical Google project. It was thrown together with little thought and is a total mess, and doesn't even have compression much better than JPEG, which is why nobody uses it.
Re: (Score:2)
Google forces support in Chrome
Did they also force support in IE and Firefox or did it's incredible market share do that?
Support is easy, but it doesn't mean anything for an image format. ... Lack of support does mean something.
Re: (Score:2)
Obligatory XKCD is obligatory (Score:3, Funny)
No. (Score:1)
Re: (Score:3, Insightful)
Already the question, how the extension of will be called. JPGX ?
RTFA. The extension will be .JPG, same as now.
Web servers will look at the brower's header, and determine if they can handle JPEG-XL. If so, that is what they get. If not, the server will auto-downgrade to an older/bigger/slower legacy format.
This avoids the chicken-or-egg problem. Servers and browsers can upgrade asynchronously. Using the same extension ensures that adoption will happen quickly.
Re: (Score:2)
The extension will be .JPG, same as now.
Ugh. That's annoying. Old OSes can handle new extensions, it should have a new extension. I'm sure something already uses .JXL, but I've never seen it, so it can piss off.
Re: (Score:2)
Junkie XL might use .JXL?
They are most known (to me at least) as the creators of this little ditty:
https://www.youtube.com/watch?... [youtube.com]
But... I'm kidding, obviously :)
Re: (Score:2)
I saw them open for gravity kills at liberty lunch, and don't remember any file extensions ;)
Re: (Score:2)
How about applications that work with local files? I didn't get from the slides whether a JPEG-XL .jpg file could be understood by a non-JPEG-XL-aware application.
Re: (Score:2)
yes and no, while you can;t read a jxl file with a standard applicaton, they do have "automatic" conversion back to jpeg for legacy apps. I'm sure it works, but not sure of the logistics of getting it.
Still, if jxl is free and open source, codecs will become available for all OSes in no time, and then it won't matter for anything other than image editors, who will no doubt get updates.
Re:No. (Score:4, Informative)
Actually TFA is suggesting .jxl as the file extension.
3 letter extensions (Score:2)
It's 2019. Why are we still only using three letters for new file-extensions?
I propose .jpegxl
Re: (Score:2)
Back in the day we used to name our music files mod.song_name, just to screw with DOS users.
Re: (Score:2)
Cellular data overage fees (Score:3)
bandwith is less and less an issue
I disagree. I contend that with the shift from desktop browsing over wired (or Wi-Fi with a wired uplink) to mobile browsing over cellular, the $5 to $10 per GB overage fees that cellular providers in the United States charge become even more significant.
Re: (Score:2)
Bandwidth is also a significant issue in developing countries. Even when there aren't billing caps, there are practical limitations associated with the number of devices per tower, which can spike randomly, overwhelming the available uplink.
Re: (Score:3)
In the slides, the file extension is ".jxl".
But I think there will be confusion between .jxl .jxl .jxl, and .jxl
* Lossy
* Lossless RGB
* Lossless indexed
* Animated
I propose .jxl for lossy, .jxll for lossless, .ixl for indexed, and everything preceded by 'a' for animated.
Re: (Score:2)
why? All the info is in the same file, so lossless, lossy can all have the same extension. just like a jpg can be compressed or not, or both plain or animated gifs are still just gif.
Re: (Score:2)
All the info is in the same file
Info inside the file is not available to a file manager's "sort by extension" feature unless the file manager's publisher has chosen to update it to open each of possibly thousands of .jxl files in a folder and scan its contents.
Re: (Score:2)
Any large scale host serving images would love keeping their bandwidth usage in check. Google have done work in improving image compression for this reason.
Please yes (Score:3, Insightful)
This is a major fucking headache for artists, for websites, for etc. Let's just declare it, JPEG XL is it, it's the standard. Hold the fuckers down at gunpoint until they implement it. Just take Satya and Tim hostage. The standard looks fine, that's not the challenge, the challenge is getting egotistical fuckwits called engineers to just implement it.
Re: (Score:2, Insightful)
Finally? Please?
Why do you want it? What do you like about the new standard?
This is a major fucking headache for artists, for websites, for etc.
There's a 90% chance that artists and websites don't care about nonlinear Haar transforms that are introduced by JPEG XL.
Re: (Score:2, Flamebait)
Re: Please yes (Score:1)
Re: (Score:3, Funny)
But I'm guessing English is not your first language. In English we say that you are a "halfwit artist".
Re: (Score:2)
I have nothing against artists, they make excellent waiters.
Re: (Score:2)
Re: (Score:1)
Should the GPU, OS, smartphone, network be able to "do" extra math to the HDR to change the final "artist" created HDR image?
So it displays well in a dark room? On a slow network? For a company trying to save on network costs?
So it looks good on a lcd? The AI-enhanced TV? Local dimming not doing enough?
Can the artist set how the HDR will look on different HDR display tech?
On a smartphone, 4K/8K consumer "TV", the we
Re: (Score:2)
Re: (Score:3)
There's a 90% chance that artists and websites don't care about nonlinear Haar transforms that are introduced by JPEG XL.
But they do care about having an alpha channel, and images that are 60% smaller ... and 60% faster to load or transmit.
Re: (Score:2)
There's a 100% chance that artists care about wide gamut colours, and JPEG don't deliver. They also don't care about formas, they just want to use one and have done with it - not be told that they must use format X for this, format Y for that, and format Z if they want some other feature.
this supports them all, and offers some pretty cool features like progressive streaming. JPEG is a standard almost everyone uses unless they need things like alpha or lossless, this gives it them.
jpegXL is best until next jpeg?? Comes along (Score:2)
Not much ambiguity in your post.
What are you going to do when something better comes along (and something better will come along) - are you going to say again that the new image format is THE STANDARD and "Hold the fuckers down at gunpoint until they implement it." again?
Why don't we see more than a 48 slide presentation and hear what the bosses of the "egotistical fuckwits" has to say.
Re: (Score:3)
I agree with you on your first part about implementing it, but not on your last part about "egotistical fuckwits called engineers".
I am myself an engineer working with software development since 1992 when I graduated with an M.Sc. in it, and still doing it.
Unfortunately us 'egotistical fuckwits called engineers' don't usually decide much regarding what will eventually be used or included in a product.
That may be decided by a totally non engineering type manager, or a manager that used to be an engineer but
Re: (Score:2)
This is a major fucking headache for artists, for websites, for etc.
Defend that statement. How is it a major headache for artists?
Artists have many lossless formats to support their workflow and storage. JPEG is visual indistinguishable for publication purposes. There's no benefit to be had here because even if there was another format the workflow is still the same.
What about websites? What is such a problem with JPEGs for websites?
Only Practical Advantage of jpegXL seems to be (Score:2)
"Responsive by Design" aspect where the image is "squeezed" (to use the presentation's terms) so that only a certain amount of the image's file needs to be used to best show the image on the current display. Now, the problem is for apps (and browsers) to take advantage of this feature and minimizing downloading for the specific device display being used.
Otherwise... I think people have already asked, what problem does it solve and I'm not sure that the "Responsive by Design" feature is good enough for thi
Google's new photo format (Score:1)
Does anybody know how to convert Google's new html photo package to ordinary JPEG? No help at support.google.com
Creeping featurism? (Score:2)
Maybe JPEG-XL could meet the demand for better compression and higher dynamic range, but it has a lot of other things: It supports both lossy and lossless compression, progressive encoding and animation: so that it could replace both JPEG, PNG and animated GIFs.
The slides don't describe how exactly the progressive decoding works, but the "squeeze" slides makes it look like wavelet encoding in addition to DCT encoding.
I also don't see how color-indexed images would fit into a model using colour spaces ... Is
Re: (Score:3)
If a file is a PNG file you know it is lossless.
You don't know whether a PNG file has been converted from high color depth to 8 bits per channel or from 8 bits per channel to indexed color to save space.
Re: (Score:2)
At the very least (Score:2)
This looks like a good, standardized way to archive jpeg files. If I can find the promised utilities to convert directly between standard jpeg and XL.
.APNG would like to have a word with you. (Score:1)
Gosh, I really hope they change the name (Score:2)
I think it's a bad idea to brand like that when it can lead to astonishingly similar extensions and confusing MIME types. The last thing I want is seven different flavors of jpeg. Not everyone is going to be an expert.
I know folks want to ride on the coattails of the JPEG name, but please, for the love of Christ, name it something distinctive if and when it's implemented.
No. I think .jpx, or .jpgxl, or .jpgx won't be confusing to me, but you'd be surprised, you might get *all three*, and these things always
MNG (Score:2)
What about MNG? Was supposed to be very advanced.
Re: (Score:2)
What about MNG? Was supposed to be very advanced.
It was. So advanced nobody implemented all the features, and the implementations were all full of security holes.
Vaporware (Score:2)
An older press release [jpeg.org] says that the software to handle this format won't be available until at least October.
How much better is it... (Score:2)
... and how much more complexity does it take?
There have been plenty of JPEG "competitors" which are "much" better on select images, and something like 10-30% better on randomly selected images. However they add a lot more complexity to it.
JPEG has set rather high standards, and so far nobody has been able to be significantly better than it. Since switching to a new standard is expensive, files would have to be an order of magnitude smaller to cover the cost of complexity.
It's not like the web today is slow
Re: (Score:2)
How do I know? Because ZIP, 7ZIP, and RAR are much worse at compression than the top compressors are, yet still people only use these. When I say much better, I am not talking about only a 10% to 30% savings. I'm talking about a 50% to 80% savings, and this isnt "something new." Much better compressors have been around for DECADES.
Re: (Score:2)
Well ZIP is mostly used for compatibility, RAR is mostly used by what's known as idiots, even though the problem with RAR is now much less than it used to be before FOSS implementations came about.
JPEG has the big advantage that it's compression is perfectly adequate, yet everybody supports it. It's not like video codecs where every generation improves around 30% over the previous one.
Re: (Score:2)
How do I know? Because ZIP, 7ZIP, and RAR are much worse at compression than the top compressors are, yet still people only use these. When I say much better, I am not talking about only a 10% to 30% savings. I'm talking about a 50% to 80% savings, and this isnt "something new." Much better compressors have been around for DECADES.
And what are those? Just being curious.
Re: (Score:1)
And what are those? Just being curious.
Considering 7Zip uses LZMA, which is one of the most efficient algorithms we have today, the only one that comes to my mind would be PAQ. But the efficiency depends greatly on the type of the content.
Re: (Score:2)
Re: (Score:2)
PAQ is also over 1000 times slower than 7-zip to compress and decompress, making it impractical for most use cases.
Re: (Score:2)
Re: (Score:2)
What about AVIF? (Score:2)
Re: (Score:2)
Re: (Score:2)
I've heard that while AVIF does support a lossless mode, you need to get the color depth up to 10-bit YUV with no chroma subsampling in order to encode full range 8-bit RGB losslessly. And once you are at 10-bit YUV with no subsampling, your file size is worse than WebP's lossless mode, and it takes much more processing power to encode and decode the image.
"... a next gen replacement for JPEG, PNG and GIF" (Score:2)
Approved (Score:1)
So when will the camera/image software vendors (Score:1)
When will the camera manufactures and photography suites begin to support this?
Nothing will happen in the photography world until Adobe, Corel, Phase One, Serif (Affinity Photo). etc. start supporting this format. Also, the camera manufactures need to abandon their default JPEG engines to support this new format.
Until this "format" has been approved, blessed and standardized by the ISO - then nothing will happen.
Embedded Checksums (Score:1)
Please stop turning my animated gifs into webms. (Score:1)