• Ben Hur Horse Race
      link
      fedilink
      18
      edit-2
      29 days ago

      i have a “save webp as” firefox extension that is good as well… sorry no link Im too busy

      peace and love peace and love

      • @[email protected]
        link
        fedilink
        729 days ago

        sorry no link Im too busy

        Got a chariot race to win or something?

        That’s what the movie Ben Hur was about, right?

        • Ben Hur Horse Race
          link
          fedilink
          329 days ago
          spoiler

          yes… well, its about this guy, you know? his name is ben hur, and his childhood friend from rome comes back to and ben hur wont help him take over his homeland. then tiles fall off of this roof and then the roman guy uses it as an excuse to jail ben hur’s sister and mother to get him to help, but it only makes him freak out. so, he gets consigned to a slave ship where there’s a battle and he saves his captor’s life, which endears him to his captor, so the captor takes him back to rome where he ranks up a bit and has high status as a horse racer in the colosseum. ben hur leaves to go find his old roman buddy and take revenge, and he meets this arab horse trainer (played horribly embarrassingly by a white dude in brown face) and they make friends. ben hur goes back and basically fucks his old slave woman, then challenges the roman dude in a massive horse race where he basically kills him. turns out all this time the mother and sister were in prison they contracted leprosy, so ben hur goes and gets them from the leper colony. jesus is crucified nearby and his blood drips off the cross and cures the mother and sister of leprosy.

          its three and a half hours long. its super campy and over-acted. it used to be on tv when my wife was a kid and now we get high and watch it around easter. its fuckin hysterical…

      • zqps
        link
        fedilink
        329 days ago

        It’s probably this one and it’s fucking great and has a button to copy directly to clipboard in the format of your choice

        • @[email protected]
          link
          fedilink
          429 days ago

          It’s a format meant for web browsers. If you want your web browser to ignore performance and focus on universally reusable images, I guess. But that’s me making leaps not in the “meme”

  • @[email protected]
    link
    fedilink
    76
    edit-2
    29 days ago

    I’m working on a project which generates images in multiples sizes, and also converts to WEBP and AVIF.

    The difference in file size is significant. It might not matter to you, but it matters to a lot of people.

    Here’s an example (the filename is the width):

    Also, using the <picture></picture> element, if the users’ browsers don’t support (or block) AVIF/WEBP, the original format is used. No harm in using them.

    (I know this is a meme post, but some people are taking it seriously)

        • @[email protected]
          link
          fedilink
          129 days ago

          So you have no hard proof (no critic here, I’m just curious)? Not that it’s better but that your test images has the same quality.

          For the rest, thank you for the links and the time but that only explains how the compression works.

          If you want to know you could do fourier transform and see which kind of signals are cut out in one for example.

          • @[email protected]
            link
            fedilink
            2
            edit-2
            28 days ago

            Quality improvements are that you can upload/download it without getting artifacts/pixel bleeding. JXL’s algorithm ensures that it’s a 1 to 1 transfer

            But if I draw a stick person 512x512, there isn’t an image format that will make it anymore than it is. That’s why we look at compression

      • @[email protected]
        link
        fedilink
        229 days ago

        For most of the images that I tried you can only see differences with the images side by side. It’s really subtle.

        I do have one example for which my config must be bad, compresses a lot but introduces a lot of noise

    • HeyListenWatchOut
      link
      fedilink
      English
      2629 days ago

      I’ve mentioned this topic in regards to animated images, but don’t see as big a reason to push for static formats due to the overall relatively limited benefits other than wider gamut and marginally smaller file size (percentage wise they are significant, but 2KB vs 200KB is paltry on even a terrible connection in the 2000s).

      What I really wish is that we could get more browsers, sites, and apps to universally support more modern formats to replace the overly bloated terribly performing and never correctly pronounced animated formats like GIF with something else like AVIF, webm, webp (this was a roughly ~60MB GIF, and becomes a 1MB WEBP with better performance), or even something like APNG…

      Besides wider gamut, and better performance, the sizes are actually significant on all but the fastest connections and save sites on both storage and bandwidth at significant scale compared to the mere KB of change that a static modern asset has.

      This WEBP is only 800KB but only shows up on some server instances since not every Lemmy host supports embedding them :

      • I Cast Fist
        link
        fedilink
        529 days ago

        Is that last webp animated? Asking because I know jerboa (Lemmy client) doesn’t play animated images

      • @[email protected]
        link
        fedilink
        4
        edit-2
        29 days ago

        but 2KB vs 200KB is paltry on even a terrible connection in the 2000s).

        You still need to resize the images and choose the right ones (even if only for the device’s performance).

        So we might as well do that small extra step and add conversion to the process.

        What I really wish is that we could get more browsers, sites, and apps to universally support more modern formats to replace the overly bloated terribly performing and never correctly pronounced animated formats like GIF with something else like AVIF, webm, webp (this was a roughly ~60MB GIF, and becomes a 1MB WEBP with better performance), or even something like APNG…

        Isn’t that the users’ fault? And of the websites for allowing those huge GIFs.

        Apparently browsers have supported MP4 for a long time.

        https://caniuse.com/mpeg4

        • @[email protected]
          link
          fedilink
          129 days ago

          How are you auto converting images to webp?? What is this magic. My company uses Visual Studio 2022 and our creative guy is having to save everything manually in multiple formats. Then our devs put in the webp first with a jpeg fallback, but it’s all so manual.

          • @[email protected]
            link
            fedilink
            4
            edit-2
            29 days ago

            Funny you call it magic, what actually does the conversion is Imagick.

            In my project I have it integrated in the upload process. You upload a PNG/JPG and it does its thing. Since it’s written in PHP (my project), and PHP has an extension to call Imagick, I didn’t need to write any complicated code.

            You can see on this page if your programming language of choice has any integration with Imagick.

            But there’s always the command line interface. Depending on your process it may be easier to create a script to “convert all images in a folder”, for example.

    • @[email protected]
      link
      fedilink
      629 days ago

      I’m mad tho! I have technical issues with a format that works for hundreds of millions of users daily with the only impact being their website loads faster! RAGE!

    • @[email protected]
      link
      fedilink
      329 days ago

      How is the size difference after gzip compression? Probably pretty much the same, but I wonder how large the difference is then. Since a lot of folk make sure the contents is gzipped when served to the user.

      • @[email protected]
        link
        fedilink
        729 days ago

        Even using the highest compression levels, barely any difference. Not worth it

        If I understand correctly gzip, brotli and similar are best used to compress text.

        Font files also shouldn’t be compressed. A TTF file compresses a bit, but a WOFF2 file will be even smaller than that (and WOFF2 also doesn’t compress well). So might as well use WOFF/WOFF2

        • @[email protected]
          link
          fedilink
          English
          229 days ago

          If I understand correctly gzip, brotli and similar are best used to compress text.

          Compression algos should be used on uncompressed data. Using them on already compressed data (most video, images, music formats) is generally useless.

      • @[email protected]
        link
        fedilink
        English
        128 days ago

        Because jxl is a bunch of bollocks. There’s no way it will gain any support any time soon.

      • @[email protected]
        link
        fedilink
        English
        11
        edit-2
        29 days ago

        Webp is supported in browsers. Jxl is not, unfortunately.

        (Well, I have the Firefox extension for it, but most people can’t see them…)

        People should still use it tho, with the fallback of webp or avif

        • @[email protected]
          link
          fedilink
          5
          edit-2
          29 days ago

          Firefox just hasn’t enabled the setting (well they haven’t made the setting enable jxl support yet even though the setting and support has been there for years). This means their forks support it, that’s why I switched to Waterfox

          Safari supports it

          Chromium removed support for it 2 years ago to push webp but it’s just a reminder to not use Chromium browsers

    • @[email protected]
      link
      fedilink
      229 days ago

      I don’t know if the client is the issue, but I am using the Voyager android app and this image failed to load

    • @[email protected]
      link
      fedilink
      829 days ago

      Literally just today solved a problem of delivering analytics plots over our internal chat system. The file size limit is 28Kb and I was just getting ready to say screw it, can’t be done.

      Lo and behold our chat system that doesn’t support svg does support webp. Even visually complicated charts come in just below the size limit with webp.

        • @[email protected]
          link
          fedilink
          529 days ago

          Honestly no idea. It’s funny though. The API allows us to either read it directly from our lakehouse with the 28Kb limit, or allows us to encode it in a json object. It actually recommends using the json method if we want to send larger files… but then complains it’s too large if it’s over 28Kb 🤷‍♂️

          I think it was probably originally only intended to allow attaching icons.

          • @[email protected]
            cake
            link
            fedilink
            English
            329 days ago

            Feels like a bug where someone forgot the 1 in 128kb. What chat app is this?? In Slack, custom emojis can be up to 128kb in filesize

            • @[email protected]
              link
              fedilink
              229 days ago

              It’s MS Teams with their PowerAutomate flows from Fabric. The limitation might not exist in the direct rest API, which I could have used through Python; but it’s a hackathon, and my other team mates know PowerAutomate. Faster if we each coordinate using what we’re good with.

  • @[email protected]
    link
    fedilink
    729 days ago

    What is being implied here? That Website A encourages you to download an image from them in WEBP format, but you cannot then upload that image to Websites B through Z because those sites do not support WEBP?

  • Maki
    link
    fedilink
    1029 days ago

    Now try to find somewhere which accepts apng or mng. I’ll wait. ;)

    • @[email protected]
      link
      fedilink
      2
      edit-2
      29 days ago

      Just checked, our very corporate and much antiquated website does accept apng (sadly not publicly visible as it’s b2b only). We do deal with photography though, so we do expect multitude of formats and mostly either pass them unchanged or just feed them to ImageMagick and forget about it. The bane of our existence is mostly DNG which Adobe breaks every year or so by introducing breaking spec changes.

      EDIT: Haven’t found a place to even get an mng sample, though. Do you have any?

      • Maki
        link
        fedilink
        129 days ago

        MNG is a bit of an oddity; it was originally supposed to replace GIF but was itself replaced with PNG, Flash, and SVG. I have no such files available but ImageMagick can supposedly make one out of a number of PNG or JPG files if you’re interested in toying with it.

  • @[email protected]
    link
    fedilink
    1429 days ago

    in my honest opinion, it’s a real shame that webp isn’t widely supported. it’s actually really great: it has awesome lossless compression, it’s so much smaller than a png while not losing any quality, it supports animation and loops, etc. it’s like jpg, png, and gif rolled into one format.

    • @[email protected]
      link
      fedilink
      228 days ago

      it’s like jpg, png, and gif rolled into one format.

      and therein lies the problem.

      one tool should do one thing, and do it well.

  • @[email protected]
    link
    fedilink
    228 days ago

    How many people that are clinging to JPEG are also hating anti-AI people for being “Luddites”?

    • @[email protected]
      link
      fedilink
      128 days ago

      It seems I pissed off the right kind of people yet again.

      “Anti genAI? Move on with the times, boomer!” and then “Why is image not deep fried and can’t be opened in Real Shit Movie Editor 2003?”. (Note: genAI is boomer technology.)

  • @[email protected]
    link
    fedilink
    English
    22
    edit-2
    28 days ago

    Wait am I the only one who actually likes WEBP and is cheering for JPEG to finally die ? 😭

    • @[email protected]
      link
      fedilink
      1728 days ago

      If webp didn’t come from google I might cheer it. I refuse to adopt any standard made by google if I can help it. If google made it, they made it with some reason or ability to alter it that’s nefarious and anti consumer. They wouldn’t make an improved open standard that wasn’t going to allow them to do shady shit.

      • @[email protected]
        link
        fedilink
        16
        edit-2
        28 days ago

        They made it because better image compression means less storage is required for images. Even if it’s a small upgrade, over trillions of images or exabytes of data saved translates into millions of dollars saved. This is the same thing for the delta format as another example

        By making .webp an open standard, more people will use it, thus more space savings will be had by default

          • @[email protected]
            link
            fedilink
            1128 days ago

            I’m sure Google literally doesn’t care, as long as a more effective compression algorithm is used. That’s why they made it an open standard, use whatever you want but don’t demonize .webp unnecessarily

            • Raltoid
              link
              fedilink
              English
              228 days ago

              I’m sure google doesn’t …

              Said everyone who’s never experienced google doing google things.

            • @[email protected]
              link
              fedilink
              228 days ago

              Use whatever you want, but remember Google gets to decide what Chrome supports and if Chrome doesn’t support it…

    • @[email protected]
      link
      fedilink
      1928 days ago

      Webp can die. JpegXL is better in every metric and can losslessly compress existing jpeg images. The chromium team has been notably trying to kill JXL because they spent so much time on AVIF and Webp despite neither offer anything close to JXL.

  • Lucy :3
    link
    fedilink
    829 days ago

    Tbh, for myself I either want lossless (eg. professional photographs for an app) or don’t care about size, due to small volume (eg. my own pics and vids) and also kinda want the originals. And in today’s time, bandwidth isn’t lacking (for most people, including me). So everything’s just a png.