16 ms·
JPEG XL
- tosh 5y agodiscussed at https://news.ycombinator.com/item?id=27559748 https://news.ycombinator.com/item?id=27559748
- baal80spam 5y agoI wonder how relevant is this xkcd going to be here. https://xkcd.com/927/ https://xkcd.com/927/
- andrius4669 5y agolossless reversible jpeg recompression seems to be a nod to the fact that jpegs aren't going anywhere.
- romanovcode 5y agoOn the web you want to use WebP nowadays so I would not be so sure.
- pabs3 5y agoJPEG XL is allegedly better than WebP, so once browsers get support, seems like it would be the future.
- acdha 5y agoWebP is slower and frequently the size benefits are quite small, even non-existent, as you’d expect for an old codec. Anyone concerned about bandwidth or features is probably going to want to support newer formats like HEIC which offer better performance to offset the cost of managing multiple formats.
- p0nce 5y agoWebP has a bit less features, for example it's only 4:2:0 (which looks great).
- formerly_proven 5y agoWell that kinda depends, 4:2:0 is good enough for video and photo uses, but falls over pretty hard when confronted with synthetic images (e.g. UIs).
- lcnmrn 5y agoJPEG XL has a non backwards compatible mode too for highest quality/compression and the bitstream can be improved with better encoders in the future.
- clouddrover 5y agoIt's true that JPEG will hang around purely because a lot of software and hardware supports it and they can't all be easily updated. But existing JPEG images can be losslessly (and reversibly) transcoded to JPEG XL and you still get reduced file sizes: https://cloudinary.com/blog/legacy_and_transition_creating_a_new_universal_image_codec https://cloudinary.com/blog/legacy_and_transition_creating_a... JPEG XL will be successful for this reason alone.
- blowski 5y agoIt's kind of relevant, but it's probably relevant to half the posts on HN. By this point, it's kind of a cliche to bring it up.
- londons_explore 5y agoOh look, another barely used image format alongside WebP, Animated PNG, AVIF, JPEG2000, and a bunch of others so obscure I forgot them. It seems image formats have ossified. Nobody cares if the images are 50% smaller because storage and network are cheap enough not to deal with the hassle of using a non-standard image format.
- mschuster91 5y agoI would not call JPEG2000 being "barely used" - it is the standard format for all digital cinema movie packages.
- ianlevesque 5y agoWhat is a digital cinema movie package?
- detaro 5y agoThe data format used to send movies to cinemas.
- layoutIfNeeded 5y agohttps://en.m.wikipedia.org/wiki/Digital_Cinema_Package https://en.m.wikipedia.org/wiki/Digital_Cinema_Package
- speedgoose 5y agoCinemas don't use consumer grave video compression like h265, instead each frame is a jpeg 2000 image. It's heavy.
- KaiserPro 5y agoTo simplify its a tar with jpeg2000s as an image stream, plus audio and some metadata. Its then (usually, but it is optional) encrypted to make sure that its hard to copy. The keys are sent directly to each projector to allow time limited, and or other limited use. The reason why its used is because it optimized for quality, rather than size. It also allows custom colour spaces and other tweaks to maintain/enforce colour correctness/image quality.
- dsego 5y agoWhat is the Weissman score?
- lcnmrn 5y agoThe only missing part is support in all browsers and operating systems.
- jerryX 5y agoAlready in Chrome, Firefox, Edge: https://www.ghacks.net/2021/05/11/find-out-if-your-browser-supports-the-new-image-format-jpeg-xl/ https://www.ghacks.net/2021/05/11/find-out-if-your-browser-s...
- phartenfeller 5y agoYes but behind a Flag. With default settings, it hasn't landed in any browser yet: https://caniuse.com/jpegxl https://caniuse.com/jpegxl I hope that Safari does not take as long to implement it as with WEBP...
- ByTheBook 5y agoI doubt it will be enabled by default until it reaches version 1.0, it is currently at 0.3 IIRC
- hulitu 5y agoThis is only 1 browser with 3 distributors.
- andrius4669 5y agofirefox is chrome distribution? that's new to me
- tgv 5y agoFirefox is a very different browser. Edge shares its base with Chrome, and that's derived from WebKit.
- vanderZwan 5y agoThis may be my memory playing tricks on me (after all, time perception changes as you get older), but if I think back to the speed of adoption of just about any image format that came after JPEG and GIF, then JPEG XL seems to be moving really fast by comparison. EDIT: granted, computers being stuck on old versions of Internet Explorer back in the day and therefore holding back (for example) PNG adoption is a very different situation than that of the modern web, which makes it a bit of an unfair comparison.
- deleted 5y ago[deleted]
- ksec 5y agoComment from Facebook Infra [1], >Erik Andre from the Images Infra team at Facebook here. I'd like to share a bit of our view on JPEG XL in the context of new image formats (e.g AVIF, JPEG XL, WEBP2, ...) and how browser adoption will let us move forward with our plans to test and hopefully roll out JPEG XL. >After spending the last 5 months investigating and evaluating JPEG XL from both a performance and quality point of view, it's our opinion that JPEG XL has the most potential of the new generation of image formats that are trying to succeed JPEG. >This opinion is based on the following findings: >JPEG XL encoding at speed/effort 6 is as fast as JPEG encoding (using MozJpeg with Trellis encoding enabled). This means that it's practical to encode JPEG XL images on the fly and serve to client. This can be compared with the encoding speed of AVIF which necessitates offline encoding which offers much less flexibility when it comes to delivering dynamically sized and compressed content. Depending on the settings used, JPEG XL can also be very fast to decode. Our mobile benchmarks show that we can reach parity with JPEG when using multiple threads to decode. This matches and in many cases surpasses the decoding performance of other new image formats. The JPEG XL image format supports progressive decoding, offering similar gains in perceived image load performance we are already benefitting from with JPEG. This is a feature lacking in the other new image formats which are all derived from Video codecs where such features makes little sense to support. >Having browser support from all the major browsers is going to make our lives a lot easier in upcoming WWW experiments and ensure that we can deliver a consistent experience across platforms and browsers. Blink Tracking Bug [2] currently behind a flag ,Firefox on both [1] and [3], currently in about:preferences#experimental on Firefox Nightly. If I remember correctly it is supported on Edge behind a parameter as well. I thought it was all very quiet after the standard was published, turns out both Chrome and Firefox intent to support it. AFAIK, neither Webkit nor Safari has any plan or intention to support JPEGXL. I think ( someone correct me if I am wrong ) Safari uses macOS image decoding library. So supporting JPEGXL may come from an OS update and not browser? Finally, an open standard, Royalty Free, open-source reference implementation, and it is nearly better than all other alternative. As an image format on the web it is quite possibly close to perfect [4]. It is exciting and I hope JPEG XL will succeed. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1539075 https://bugzilla.mozilla.org/show_bug.cgi?id=1539075 [2] https://bugs.chromium.org/p/chromium/issues/detail?id=1178058 https://bugs.chromium.org/p/chromium/issues/detail?id=117805... [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1707590 https://bugzilla.mozilla.org/show_bug.cgi?id=1707590 [4] I remember the conversion from a little more than 6 months ago current encoder is not optimised for image quality below bpp 1.0, those are going to be the focus once all the initial reference encoder and decoder standards and issues are done. So in case anyone wondering it doesn't look as good as other competitors ( but still a lot better than JPEG ), those improvements are coming later.
- lnyan 5y agoChrome status: In developer trial (Behind a flag) FireFox status: Only in Nightly and behind a flag https://caniuse.com/?search=jpeg-xl https://caniuse.com/?search=jpeg-xl
- sp332 5y agoThe Firefox flag is "image.jxl.enabled" and the Chrome flag is "enable-jxl", in case anyone else was searching for jpegxl or something instead.
- mmis1000 5y agoYou don't really need to alter the flags directly if you are on Firefox nightly. Firefox nightly already has a dedicated page for recent experiments in setting page. JPEG XL is already on it for a few months.
- sp332 5y agoThat's cool. I've been running Nightly for a while but I haven't been keeping up on new things in that tab.
- jug 5y agoAldo, note that while Edge has initial support as well, it’s behind a command-like attribute rather than a flag. Not sure why they didn’t just do it like Chromium but I have a suspicion they might want to remove it later and replace it with a JPEG XL image extension like they’ve done recently for AVIF etc. The reason is that this then benefits the entire system. But regardless. All main browsers but Safari will get it. The jury’s still out on Safari/WebKit.
- jonsneyers 5y agoHere is something you can do to enable jxl in Edge without having to pass the command line option: https://gist.github.com/ziemek99/6295222469218427bb160cf849cdaa0c https://gist.github.com/ziemek99/6295222469218427bb160cf849c...
- traspler 5y agoOne big problem I have with the image/video format zoo in the browsers is that it becomes an incredible complicated task to get the media out of the browser in a format all the other software can work with. It would be amazing if the browsers offered a built-in „Download & Convert“ feature for images and videos. Pages automatically defaulting to webp so you try to send the link through a messenger and you might notice that it doesn‘t work for everyone, either iOS users can‘t see it or the messenger interprets it strangely. So you try to save the image and send that, same problem, you get the webp image…
- Daemon404 5y agoChrome does seem to save the JPEG version on some WebP or AVIF URLs where there is also a JPEG version available too, although it seems to be 'clever' about it rather than explicitly offering the option, which can make saving the actual WebP or AVIF mildly annoying.
- traspler 5y agoI've noticed this too but I couldn't determine any clear patterns. It's also very confusing when the file ending in the URL does not match what I download (that's why an explicit "save as" might be better than an implicit auto conversion). I think I also had situations where it did the opposite, download the webp even though the URL had jpeg in the name. I assumed that it's the webserver serving the image being too clever.
- deleted 5y ago[deleted]
- jonsneyers 5y agoI agree with this, and I think for this reason it is best if a new codec gets wide adoption also outside browsers, instead of having the approach of a "web codec" where it suffices that servers and browsers know about it but the wider ecosystem doesn't support it. WebP in particular, as the name suggests, was conceived as an "image format for the web" and while I think it's good to have the web in mind when designing an image codec, I think it's a bad idea to limit the scope like that. Design decisions like limiting the maximum dimensions and bit depth at the codec level "because that's all the web needs" plus limited attention/focus to adoption outside browsers does lead to the phenomenon you describe where "it doesn't work for everyone", causing the small gain of improved compression to be dwarfed by the huge inconvenience of breaking workflows. Any new codec of course has this problem even if they do target wide adoption (like JPEG XL): adoption is never instantaneous. It is a fact that the release cycle of browsers is more suitable for innovation than that of most other software, so it does make sense to start there even when it will still cause things to break in software that doesn't support it yet. To mitigate that, I think it would help a lot of browsers would have a "Save As..." dialog box on images that gives users the choice to save the actual image in whatever format it is in, or to convert it to PNG or JPEG.
- jokoon 5y agoCurious to see how it compares to BGP: https://bellard.org/bpg/ https://bellard.org/bpg/ Comparison: http://xooyoozoo.github.io/yolo-octo-bugfixes/ http://xooyoozoo.github.io/yolo-octo-bugfixes/ But again, the main bottleneck with image compression is embedded software, like smartphone, cameras, etc. There is a compromise and cost/benefit between file size, transistor requirement, CPU cycles, power required, etc. For example, I would be interested to see the size of binary code required to compress JPG, JPG XL, BGP, WEBP, etc.
- est31 5y agoQuality wise, BPG is essentially the same thing as HEIF because both base on HEVC. There are comparisons with HEIF in the slides linked on the JPEG XL homepage: https://docs.google.com/presentation/d/1LlmUR0Uoh4dgT3DjanLjhlXrk_5W2nJBDqDAMbhe8v8/edit?usp=sharing https://docs.google.com/presentation/d/1LlmUR0Uoh4dgT3DjanLj...
- formerly_proven 5y agon.b. HEVC is not royalty-free, while JPEG XL is.
- sp332 5y agoThanks for mentioning this, I was curious and I thought it would be getting more discussion here.
- jbverschoor 5y agoThe site doesn't state this, but https://jpeg.org/jpegxl/ https://jpeg.org/jpegxl/ says: JPEG XL further includes features such as: - animation - alpha channels - layers - thumbnails - lossless and progressive coding I wonder if progressive loading can halt loading (network I/O) at certain resolutions. This would remove the need of img-sets. Edit: Interesting talk at https://www.youtube.com/watch?v=t63DBrQCUWc https://www.youtube.com/watch?v=t63DBrQCUWc and https://www.youtube.com/watch?v=RYJf7kelYQQ https://www.youtube.com/watch?v=RYJf7kelYQQ Esp. the "visual target" instead of "technical target" when deciding the encoding quality. Also, the lossless and reversible transcoding from JPEG, GIF and PNG.
- ksec 5y ago>I wonder if progressive loading can halt loading (network I/O) at certain resolutions. This would remove the need of img-sets. Yes, not resolution but predetermined quality levels.
- ZeroGravitas 5y agoI believe it can also resume from where it left off, if you click a thumbnail to get a closer look.
- fho 5y agoI guess you trade responsiveness for 'on-demand' data transfers. I would guess that the moment you click the button is too late to resume the loading. Otoh the low-res thumbnail might be just enough to show as a (big) placeholder to bridge the (short) loading time to bring the image to a resolution that the user won't notice a difference. (brain off ... can't write coherently ...)
- ZeroGravitas 5y agoI think, though I don't know how good the actual support is, that you can start the download from an arbitrary point so if you already have the thumbnail, you only need to download from that point on. If you are 80% sure people are going to click on the link to zoom, you could preload medium and then only load the final quality after they click. One of the surprises of progressive loading, and why it's so good that JPEGXL has it, is how quickly you get to "good enough" and showing that before you get all the way to perfect.
- ZeroGravitas 5y agoA few cynical comments so far about this being one more standard to replace all the other standards a la the XKCD joke, but this is an effort that I have some faith in to actually deliver on that promise. Lots of technical, practical and and political reasons why this could quickly replace a whole bunch of legacy formats in various roles that have been hanging around for a while for one obscure reason or another. A faster, better-looking, and simpler web, yes please! Please support this so that it actually happens this time.
- est31 5y ago> this being one more standard to replace all the other standards a la the XKCD joke Even if JPEG XL does not replace all other image formats, note that as the computing industry is growing, so is the number of use cases for image formats. There is no law that there has to be one format to rule them all, how inconvenient that may be. E.g. some users might want to edit and encode extremely high resolution images on their embedded smartphones with weak processing power. They might not care if their images are 5% larger, they don't want their friends to wait for the encode to finish so that they can make another picture. Other users might only encode an image once and then distribute it to millions of users. 5% improvement in bandwidth cost might be quite significant here. On the other hand, they have lots of and computational resources to throw at making the optimal image. Can both use cases be served by the same format? Maybe. Maybe JPEG XL is that format. But these use cases came up as computers became embedded so you could carry them around, and as websites sprung up with billions of visitors. This is a development of the last 20 years. Often the response to such developments is an increase in complexity: more formats, more tools, etc.
- nabla9 5y agoVery nice practical feature: "Existing JPEG data can be represented as-is in JPEG XL: no lossy transcoding!" If you need ever to convert huge amount of archieved jpeg, you can config the conversion not to lose anything. https://docs.google.com/presentation/d/1LlmUR0Uoh4dgT3DjanLjhlXrk_5W2nJBDqDAMbhe8v8/edit#slide=id.g9b4791a110_0_406 https://docs.google.com/presentation/d/1LlmUR0Uoh4dgT3DjanLj...
- jmiserez 5y agoI know it's not the same, but technically you could do that with every format: just ship a JPEG decoder and detect if the input is a JPEG. The other way round would be much cooler, i.e. if each JPEG XL file also was a valid JPEG.
- Dylan16807 5y agoSure, if you didn't care about the size of the file you could do lots of silly cross-format things.
- Paul_S 5y agoIs it just me or do all the comparisons linked from the page show that webp actually looks better? Still, the JPEG recompression feature might be what helps adoption.
- exclipy 5y agoBy golly, you're right. eg. https://eclipseo.github.io/image-comparison-web/#us-open&WEBP=m&JXL=m&subset1 https://eclipseo.github.io/image-comparison-web/#us-open&WEB... The player is missing the corner of her mouth in the JXL version. JXL Medium (32KB) is about the same quality as WebP Small (19KB)
- torgard 5y agoI'd say JXL Medium is slightly better than WebP Small - compare e.g. the racket, face, and left hand. But it's also slightly worse than WepB Medium, e.g. with the corner of her mouth.
- LispWizard 5y agoJXL's design operating point is "no visible compression artefacts". Most people do not want to have visible compression artefacts on the images they put on their web pages. JXL starts from this premise and tries to answer the question: "How small can we then make the image?" Care must be taken when trying to compare the performance of image codecs by increasing compression density until there are very visible compression artefacts and then evaluating whether A's or B's artefacts look worse: If both A's and B's artefacts are so bad that one would not want to put such an image on one's website, such an experiment gives no insight on what one would pick for images that one would actually put on one's website. Figuratively speaking, if I buy a shirt, my main criterion is that it looks good in good condition, and not that it still looks good if I put a coffee stain on it. So, before comparing codec quality at compression levels where artefacts show, always ask yourself: At that level of visual quality, would I actually want to put either of the two options on my website? Now, it is of course tempting to compare "away from the actual operating point", because it is just so much easier to do comparisons if there are very visible differences. Comparing near-identical images for quality is hard. Doing this over and over again in a human rater experiment is exhausting. But that's then answering the actual performance questions that need to be answered.
- layoutIfNeeded 5y agoNot gonna fly, unless it's supported by PDF.
- lucasmullens 5y agoJPEG XL is available (in beta/with a flag) in Chrome, Edge, and Firefox. Seems likely once it's no longer in beta that some web developers will start conditionally using it depending on the user's browser. It doesn't need to be useful everywhere to be useful.
- layoutIfNeeded 5y agoNot gonna fly, sorry. Come back to this comment in 5 years and you’ll see.
- jonsneyers 5y agoLeonard Rosenthol from Adobe and a key person in the PDF standardization has spoken out in favor of JPEG XL: https://bugs.chromium.org/p/chromium/issues/detail?id=1178058#c38 https://bugs.chromium.org/p/chromium/issues/detail?id=117805... It does seem likely that a future edition of PDF will include JPEG XL.
- kapsteur 5y agoNo matter the technical quality of a product such as jpeg XL, it is the adoption by browsers that will make it a concrete product ?
- dtech 5y agoBoth chrome and Firefox have it in their nightlies. Similarly to webp, as soon as they have it it will be usable with header sniffing quickly.
- sp332 5y agoFacebook likes it too. And honestly that's a pretty big egg if browsers are the chicken. What are you looking for to recognize a "concrete" product?
- znpy 5y agoI'm looking at an original vs jpeg-xl in lossless and it seems that jpeg-xl alters the colors (blue in particular) noticeably? https://eclipseo.github.io/image-comparison-web/#abandonned-factory&Original=ll&JXL=ll&subset1 https://eclipseo.github.io/image-comparison-web/#abandonned-... Not sure if this is a good or bad thing. EDIT: Looking at https://eclipseo.github.io/image-comparison-web/#japan-expo&Original=ll&JXL=ll&subset1 https://eclipseo.github.io/image-comparison-web/#japan-expo&... some details about the metallic structure in the background are noticeably worse (less defined) in the jpeg-xl version.
- jerryX 5y agoIn Chrome it looks identical.
- jonsneyers 5y agoIf Original vs Lossless does not look the same, it is because your browser does not do color management correctly. JPEG XL's lossless is mathematically lossless, so there cannot be any actual difference. What can happen though is that the "Original PNG" doesn't have an ICC profile and gets treated by your browser in a different way than the PNG produced by the jxl decoder. This is a problem of your browser though, not of JPEG XL, and likely the image you see for "lossless JPEG XL" is the correct one.
- 0-_-0 5y agoAccording to IrfanView, the Lossless JPEG XL one has 167959 unique colors, while the original one has 233263. For me it looks different in Firefox, the same in Brave (the uncompressed one in Firefox is the odd one out)
- jonsneyers 5y agoI'm curious how IrfanView is counting colors then.
- GrinningFool 5y agoBoth comparisons appear identical to me in Firefox.
- tibbetts 5y agoMy biggest image format question, which I haven’t seen a clear answer to, is as an iPhone camera user should I be keeping the JPEG or the HEIC as my archival format? I theorized the HEIC had more information, but I don’t really know. Unfortunately keeping both is a usability nightmare in all the tools I’ve seen. Anyone have an informed opinion or good link?
- zaarn 5y agoIf you want to preserve fidelity indefinitely, PNG or RAW might be a better bet. Lossless formats usually are better for archival, you can always get a lossy compression out of it later and don't have to worry about generational losses.
- pjc50 5y ago.. but this is an iPhone, so the options for "original" are HEIC, JPEG, and "proraw" https://support.apple.com/en-gb/HT211965 https://support.apple.com/en-gb/HT211965
- thehappypm 5y agoIf you convert the full-resolution JPEG/HEIC to PNG you won't lose any information, right?
- sp332 5y agoSure, but what's the advantage to blowing up the file size to losslessly preserve all the lossy artifacts from JPEG or HEIC?
- jonsneyers 5y agoTechnically, you do lose _some_ information. PNG cannot represent DCT coefficients nor YCbCr data, and the conversion of those things to (8-bit) RGB is a (slightly) lossy operation.
- MontagFTB 5y ago
- hoseja 5y agoSomewhat unfortunate naming for a format that presumably tries to be as small as possible.
- lovasoa 5y agoJPEG-XL can encode huge images, whereas JPEG is limited to a maximum width and height of 65535 pixels.
- hoseja 5y agoIs support for 5 gigapixel images really such a killer feature to put it in the name?
- jonsneyers 5y agoThat's not where the name comes from :) https://en.wikipedia.org/wiki/JPEG_XL#Name https://en.wikipedia.org/wiki/JPEG_XL#Name
- IshKebab 5y agoIt's also very similar to JPEG-XR.
- jonsneyers 5y agoAnd JPEG XT. And JPEG XS. I prefer calling it JXL (or jxl) which is visually sufficiently unique to avoid confusion.
- hnbad 5y agoI first thought the name must be a clever pun when I saw that the original JPEG was dated 1992. But sadly my brain was off by a decade, JPEG XL is in fact not JPEG 40. They could have gone with JPEG XXL or JPEG XXX but the former is a bit too fanciful and the latter might cause some adoption problems outside a certain niche industry.
- 5y ago
- ncann 5y agoI wonder how good the lossy quality and size is compared to JPEG Mini.
- nuclearsugar 5y agoVery curious to see if this codec gets implemented into After Effects. I've been rendering out of Maya to a PNG sequence for many years since it's lossless and includes an alpha channel. But the decompression times leave me wishing for TIFF, TARGA, EXR, or such... But the cumulative file size difference is dramatic. And that matters when I'm rendering for example 10 tests, each with 2 layers, and also each have 10,000 frames.
- CyberDildonics 5y agoThis is not at all what it is for. Being an intermediary isn't even what png is for. Exr is made for it and can zip compress individual lines while having 16 or 32 bit floats per channel.
- jonsneyers 5y agoJPEG XL can do lossless compression of 16-bit or 32-bit (or even 24-bit and other custom float types) float data, just like EXR. It can do pretty fast encode/decode (for mezzanine use cases) and also (if you have time for encoding) it can do the densest lossless compression.
- CyberDildonics 5y agoThe point here is that EXR has taken care of being an intermediate format for 20 years but this person is using pngs and is hoping jpegxl fills the same slot of a solved problem. > It can do pretty fast encode/decode (for mezzanine use cases) I'm not sure what this means, but zipping individual lines takes care of the interactivity problem of working with compressed intermediary frames.
- KMnO4 5y agoDoes After Effects support APNG? Most browsers do. https://en.wikipedia.org/wiki/APNG https://en.wikipedia.org/wiki/APNG
- yoran 5y agoNot directly relevant to the discussion, but I'm glad to see some (ex?) KU Leuven people involved in this.
- bick_nyers 5y agoBeen evaluating lossless alternatives to .PNG, the nice thing about .webp is that it is multi-threadable (hard to come by as far as lossless compression algorithms go), can JPEG-XL (lossless) say the same?
- janwas 5y agoYes, JPEG XL lossy and lossless formats both enable parallel and region of interest decoding by splitting the image into "groups"/tiles. The parallel speedup for lossless mode depends on the speed setting.
- JyrkiAlakuijala 5y agoCheck it out with your own eyes with the most recent comparison site for WebP, AVIF and JPEG XL: https://storage.googleapis.com/demos.webmproject.org/webp/cmp/2021_06_08/index.html#08-2011-panthera-tigris-tigris-texas-park-lanzarote-tp04&WEBP=m&JXL=m&subset1 https://storage.googleapis.com/demos.webmproject.org/webp/cm... Most comparison links posted here are to older (almost a year old) versions that don't reflect the current state of encoding. Both JPEG XL and AVIF have improved tremendously.
- hnbad 5y agoThe differences IMO are even more impressive at higher compression. WebP on "tiny" loses a lot of detail whereas JPEG XL retains most details while still losing overall image quality.
- deleted 5y ago[deleted]
- lajamerr 5y agoWhy does JPEG XL affect the image quality even in lossless mode? I just compared the original tiger image to the lossless version for JPEG XL but there's some small changes that it makes.
- Aardwolf 5y agoI think this is a quirk in the tool, even if you choose Original on both sides there is some difference that looks like a scaling that's off by a few pixels
- algorithm314 5y agoFor some images like https://storage.googleapis.com/demos.webmproject.org/webp/cmp/2021_06_08/index.html#clovisfest*2:1&WEBP=m&JXL=m&subset1 https://storage.googleapis.com/demos.webmproject.org/webp/cm... jpeg xl is really behind.
- ksec 5y ago
- The_rationalist 5y agoWhile the collaboration between Google and Cloudinary is very welcome and the JPEG standardisation will accelerate adoption, it would be nice to see a comparison of JPEG XL versus FLIF/FUIF, it doesn't seem to have improved over it and it is unclear if it retains all features such as progressive decoding of animated images Cf https://flif.info/animation.html https://flif.info/animation.html
- ByTheBook 5y agoWell, the author of FLIF/FUIF, Jon Sneyers, is actually a large contributor to Jpeg XL, and from what I've seen he thinks Jpeg XL is superior.
- The_rationalist 5y agoInteresting, any source? I wonder in what way he finds it superior.
- ByTheBook 5y agoHe's written about it in his blog: https://cloudinary.com/blog/author/jon_sneyers https://cloudinary.com/blog/author/jon_sneyers
- jonsneyers 5y agoJPEG XL's Modular mode is based on the best elements of FLIF/FUIF and lossless WebP. For lossless compression, it does improve quite significantly over FLIF, see e.g. https://docs.google.com/spreadsheets/d/1ju4q1WkaXT7WoxZINmQpf4ElgMD2VMlqeDN2DuZ6yJ8/edit#gid=174429822 https://docs.google.com/spreadsheets/d/1ju4q1WkaXT7WoxZINmQp... (FLIF is on average 7.2% larger than JXL, and for some categories like pixel art the gap is larger). It also decodes significantly faster, and it has fast encode options that make it more suitable as a PNG replacement in image authoring use cases where density is not the most important thing. Progressive animation is a neat feature of FLIF but it is totally impractical in terms of decode speed and memory consumption. In general I think animation is better handled with video codecs (with multiple resolutions/bitrates to cover various devices/network conditions).
- ChrisMarshallNY 5y agoI really want this to work. As has been pointed out in the comments, it needs to be adopted beyond the browser. And easily. Anyone hear of FlashPix[0]? Anyone? Bueller? It was a staged-resolution format that was introduced by a consortium in the 1990s. The biggest problem (of many) was that, in order to read or write the format, you needed to use the Microsoft Structured Storage[1] library, which was a huge pig (at that time. I assume it's better, these days). The format was basically strangled in the crib. It was actually a fairly interesting idea, at the time, but files could be huge. [0] https://en.wikipedia.org/wiki/FlashPix https://en.wikipedia.org/wiki/FlashPix [1] https://en.wikipedia.org/wiki/COM_Structured_Storage https://en.wikipedia.org/wiki/COM_Structured_Storage
- kalleboo 5y ago> The biggest problem (of many) was that, in order to read or write the format, you needed to use the Microsoft Structured Storage[1] library, which was a huge pig (at that time. I assume it's better, these days). HEIC and AVIF are based on the QuickTime file format, which doesn't seem very svelte either. I can't find any reference on the JPEG XL container format so it's probably it's own thing.
- jonsneyers 5y agoHEIC and AVIF are both based on HEIF, which is based on ISOBMFF (just like for example MP4). The JPEG XL container (which is optional and only needed if you want to attach metadata to an image) is also based (more directly and with less header overhead) on ISOBMFF.
- astrange 5y agoThe ISO media file format is, like GP said, basically QuickTime. This can be a problem if you're the kind of completionist who needs to implement everything they see and make one C++ class per QuickTime atom - a problem I saw with a lot of mp4 codebases. But there's no need to do this because almost all the things in the spec don't matter. Just don't read any of them and handle the rest procedurally and it'll be fine. It looks like JPEG XL also has too many features (like this animation and patching thing) so maybe just ignore that too.
- jandrese 5y agoOh nice, it seems they learned from the JPEG2000 fiasco and released this with an open source license. https://gitlab.com/wg1/jpeg-xl/-/blob/master/LICENSE https://gitlab.com/wg1/jpeg-xl/-/blob/master/LICENSE
- dreamlayers 5y agoLossless JPEG transcoding making images 20% smaller is nice, though you can already losslessly shrink many JPEG files by up to 10% by using https://github.com/tjko/jpegoptim/ https://github.com/tjko/jpegoptim/ and making them interlaced.
- childintime 5y agoAn important niche to consider might be face recognition. For example the "US Open" image on medium JXL is significantly distorted in the face. As the face area is critical to the overall image quality perception, that area would benefit from reduced compression. edit: This is also the case in other images with faces (and especially the eyes).
- yummybear 5y agoThis is going to sound childish, but PIK (Google Pik) is literally “dick” in my language. I can’t help to chuckle at the notion of using PIK-images - literally dickpics.
- jonsneyers 5y agoI'm a native Dutch (of the Belgian variety) speaker and my proposal was called FUIF (which means "party" in Dutch, but it's also a backronym for Free Universal Image Format). I am very happy the result of combining PIK and FUIF was not called PIKFUIF (or FUIFPIK). Some say JPEG XL is a bad name, but it could have been so much worse...
- dang 5y agoRelated ongoing thread, complete with newly-added title qualification: JPEG XL would be Turing-complete without the 1024×1024 pixel limitation - https://news.ycombinator.com/item?id=27559748 https://news.ycombinator.com/item?id=27559748 - June 2021 (34 comments)
- fleddr 5y agoA game changer delivered by JPEG XL that is often overlooked: https://www.youtube.com/watch?v=lqi5U6dxeZU&t=223s https://www.youtube.com/watch?v=lqi5U6dxeZU&t=223s To summarize, JPEG XL has the potential to use a single file to deliver many formats. This would deprecate the current practice of web developers storing many versions of the same image to optimize for different device types/sizes. The advantages are shockingly large: - It simply is much easier (time saved) - Huge storage/cost savings for media-heavy sites/apps - Significant world wide environmental benefit - Less need for huge platforms (Facebook, Twitter) to aggressively compress photos - No need to constantly add new sizes, future-proof A dream feature, if you ask me. Do note that this feature requires both browser and web server support, so don't hold your breath. But one can dream.
- ChrisArchitect 5y agoall of this was posted 6+ months ago via various urls jpeg.org, sneyers.info/jxl/ etc (with years of posts about the proposals etc) what is new here?