15 comments

  • chrismorgan15 minutes ago
    &gt; <i>I have already switched to AVIF on every platform I use that supports it, and WebP where AVIF isn&#x27;t supported.</i><p>Where AVIF isn’t supported, I reckon you’re better to fall back to JPEG. <i>Everything</i> supports JPEG, but there are still plenty of things that don’t support WebP. Anything that supports WebP now has indicated it’s open to supporting newer formats than the baseline JPEG&#x2F;GIF&#x2F;PNG and is almost certain to support AVIF within a few years.
  • simonw2 hours ago
    Only <i>just</i> started habitually using WebP...<p>I added AVIF support to my personal image resizing tool recently - <a href="https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;image-resize-quality" rel="nofollow">https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;image-resize-quality</a> - I mostly use that for screenshots though, and WebP works better for those.
    • sampullman1 hour ago
      Have you tried Google&#x27;s jpegli encoder? I find that it generally matches webp for most image types. Quantized png is usually best for anything with a limited color palette though.
    • TurboSkyline1 hour ago
      &gt; for screenshots though, and WebP works better for those<p>Interesting! Better in terms of more quality preserved or smaller file size? Have you found other types of images where this applies?
  • remix20001 hour ago
    Does AVIF carry the same patent risks as full&#x2F;motion AV1?<p>(I’m not saying I support the claims or not, I have no idea about their technical and let alone legal merit, just thinking that there are attempts at enforcement against sites streaming AV1 and whether choosing AV1 puts say my site at risk)
    • theandrewbailey50 minutes ago
      Probably not. But if anyone ever decides to enforce patents over AV1 or AVIF, they will fight about every company in Big Tech and quite a bit of Hollywood: <a href="https:&#x2F;&#x2F;aomedia.org&#x2F;about&#x2F;members&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aomedia.org&#x2F;about&#x2F;members&#x2F;</a>
    • chrismorgan1 hour ago
      Yes. It’s just an AV1 container. Doesn’t even need to be limited to a single frame (just like GIF and APNG).
    • shmerl1 hour ago
      Hard to say, but possibly less since it&#x27;s a still image, not a video, so it inherently corresponds only to a part of AV1.<p>No need to worry about these risks for using it though. You can never say that no patent troll will surface tomorrow for literally anything. That&#x27;s not a reason not to use things.
  • Aldipower1 hour ago
    AVIF consumes around 25 times more CPU during encoding as JPEG. Take this in consideration if you pay for the power consumption. And on the user-facing side, if you upload an images it takes f.ex. 12 seconds (sic!) and not half a second.
    • jeroenhd1 hour ago
      12 seconds? It takes 7 seconds on my phone, in a wasm runtime using an older version of the encoder.<p>From my experience throwing random JPEGs at it, it&#x27;s 3 to 4 times smaller, that&#x27;s a good chunk of data saved, which in turn is a lot of energy saved on visitors&#x27; radios being active.<p>Unlike with jpeg, you don&#x27;t need 85 or 95 percent on the quality score, 50 is more than good enough for most pictures on a website.<p>If you&#x27;re hosting images and want a fully lossless encoding the CPU time may become a factor, but if you&#x27;re hosting user generated content, I don&#x27;t think it&#x27;s all that bad. Plus, you can just move the encoding part to the user side of the equation and pretend it&#x27;s part of the upload progress bar if you&#x27;re desperate to pay the power bill.
      • Aldipower47 minutes ago
        The numbers above coming from a test run on one of my own servers serving and receiving user generated images. It is a Intel E5 56 CPU threads machine with DDR4 RAM. A single thread may be slower then your phone CPU cores, but that&#x27;s what you find very often when running servers.
  • kasabali2 hours ago
    &gt; Even YouTube is preparing to move beyond AV1 and begin streaming video using AV2, potentially as early as 2027. If a company handling the enormous amount of video that YouTube does sees the benefits of a more efficient format, shouldn&#x27;t the rest of the internet be taking a closer look at what we can do with images and video too?<p>Odd argument.<p>Image isn’t video and we are not YouTube.
    • thisislife222 minutes ago
      AV1 (and AV2) do save a lot of bandwidth, and Youtube already serves AV1 selectively to some users. But the biggest drawback of AV1 is that it needs more resources to even decode. This is especially apparent on old computers that don&#x27;t have dedicated AV1 encoders or decoders. I discovered this when someone complained to me that PaleMoon on their old PC suddenly consumed a lot of CPU resource causing the PC to stutter - turned out that Youtube was serving AV1 encoded videos on it. Disabling AV1 support in the browser fixed it as Youtube was then forced to serve AVC &#x2F; H.264 encoded videos.
    • d2kx2 hours ago
      not an odd argument. AVIF is based on AV1, so what they mean is that since we accept YouTube&#x27;s AV1 usage as mainstream nowadays, so should be it&#x27;s image part
  • nwah12 hours ago
    Regular JPEG can also be compressed much more than it usually is:<p><a href="https:&#x2F;&#x2F;symbiogenesis.github.io&#x2F;DotJpegli&#x2F;" rel="nofollow">https:&#x2F;&#x2F;symbiogenesis.github.io&#x2F;DotJpegli&#x2F;</a><p>However, video would matter so much more than images, to the overall internet, that images don&#x27;t even matter by comparison.
    • i80and2 hours ago
      It&#x27;s pretty frustrating that JPEG encoding generally got stuck with libjpeg-turbo.
  • thekid3142 hours ago
    Absolutely agree, for my photo portfolio website AVIF allows me to serve higher quality photos faster to potential clients.<p>I’ll just drop my AVIF local support for Wordpress plugin here: <a href="https:&#x2F;&#x2F;github.com&#x2F;ddegner&#x2F;avif-local-support" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ddegner&#x2F;avif-local-support</a>
  • origini2 hours ago
    Yeah why not?<p>Because whenever I download an image and its webp, the next thing i do is i google &quot;webp to png&#x2F;jpg&quot; conversation because yeah service XY or Tool Z doesn&#x27;t support it.<p>Or my Fire TV Stick :(<p>I configure my nginx to serve everything available though. Thats what i can do.
    • jeroenhd1 hour ago
      You can throw almost any image format with open standards into squoosh.app if you&#x27;re still using software that doesn&#x27;t open webp.<p>It&#x27;s been a while since Photoshop finally got support, though, I can&#x27;t recall the last time webp posed a problem for me. Then again I don&#x27;t use a Firestick, no idea how that would deal with image formats, I guess it&#x27;s no longer being maintained?
  • kiwibyproxy33 minutes ago
    not one mention of JXL in the article?
  • 0x_rs1 hour ago
    Enough keyframe-based &quot;image&quot; formats, please! The internet and the world at large needs a real and proper modern format, not some quick hacks from bored engineers that only contribute to the endless fragmentation online and do <i>not</i> leverage any existing infrastructure for serving video. There&#x27;s more than just crappy ultra-low-quality thumbnails around. WebP, AVIF are the webscale equivalent of serving images.
    • iknowstuff53 minutes ago
      Say more please, what’s up with keyframes?
  • flerchin2 hours ago
    Maybe a middle out compression is the way to go.
  • DivingForGold2 days ago
    Seems about time we have ANOTHER round of serious investigations into collusion in the memory industry artificially driving up prices ...
  • BorisMelnik2 hours ago
    I swear I saw this exact post here on HN last week
  • shmerl1 hour ago
    Yes, but sites are super slow to enable it.<p>* <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;gitlab-org&#x2F;gitlab&#x2F;-&#x2F;work_items&#x2F;428012" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;gitlab-org&#x2F;gitlab&#x2F;-&#x2F;work_items&#x2F;428012</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;orgs&#x2F;community&#x2F;discussions&#x2F;138164" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;orgs&#x2F;community&#x2F;discussions&#x2F;138164</a>
  • Don&#x27;t you mean JPEG XL?<p><i>JPEG XL vs. AVIF for web use-cases</i><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=50120224">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=50120224</a>
    • anilgulecha2 hours ago
      Jpeg-XL&#x27;s key win was only lossless translation of existing jpeg to a modern format. Mostly for archives where you don&#x27;t want a lossy translation.<p>In terms of picture quality for given size, AVIF has it solidly beat.
      • mort962 hours ago
        You could make an argument that we should have AVIF everywhere on the web. But if you want a single image format to be <i>everywhere</i>, I think JPEG-XL is just better suited. AVIF has restrictions on resolutions and number of planes, and doesn&#x27;t do lossless very well. It&#x27;s competitive with AVIF on lossy image quality (even though yes, AVIF does seem like it tends to consistently have the advantage there).
        • anilgulecha2 hours ago
          Image formats goes in era, and there&#x27;s no need for monoculture. But given we&#x27;re talking exabytes of data, for this era, the author rightly articulates why AVIF should win. Should JPEGXL2 beat it in the future then it can take over for a decade. We seem to essentially have gone through like 4 formats so far: gif, jpg, PNG and webp. On vector side, SVG has no real competition - it&#x27;s solid.
          • smaudet30 minutes ago
            &gt; But given we&#x27;re talking exabytes of data, for this era, the author rightly articulates why AVIF should win.<p>I&#x27;m not sure this is the right conclusion to draw...<p>1) The author&#x27;s pain point (use case) is hardware pricing - presuming that goes down (as either AI demands drops&#x2F;and or production increases), this does not speak to a demand for size, instead, it is about doing more with less...<p>2) I&#x27;m not certain that the exabytes of demand (assuming it comes) will be from AVIF. Rather, if data is important, I think the demand will be a different format entirely (archives, for instance). Demand for more (quality) data might paradoxically call for <i>less</i> compression and <i>less</i> cpu-intensive qualities - uncompressed, raw data, for instance. If is faster and cheaper than bothering with complex algorithms, then simpler formats should be more prevalent.<p>Building on 1 and 2, a <i>more capable</i> image format, like JPEG-XL, becomes a more logical choice, not the one that can compress the best or is the smallest (in an exa-byte-as-the-norm world).
          • mort962 hours ago
            The author is explicitly arguing for an AVIF monoculture. AVIF isn&#x27;t an appropriate format for an image format monoculture, but JPEG-XL could be.<p>&quot;We should use AVIF for most web images&quot; is a different statement which I have no problem with.
      • bhouston58 minutes ago
        &gt; Jpeg-XL&#x27;s key win was only lossless translation of existing jpeg to a modern format.<p>Huh?<p>JpegXL is the only widely supported format (once it comes to the various browser as is planned) that can store true HDR linear images in floating point (fp16 and fp32) formats.<p>AVIF can only do 10 bit integer ranges, sure that HDR compared to 8bit but it is not sufficient for useful extended range color spaces.
    • xnx1 hour ago
      Agree, though I do miss the clarity of if an image is lossy or lossless just by extension. (Obviously a png could be produced from a heavily compressed jpg, but it is still a handy heuristic in my image pipelines)