• @Thorry84@feddit.nl
    link
    fedilink
    17221 days ago

    I recently put in a lot of hours for a software system to be able to handle webp just as well as every other image format it already accepted. I put in a lot of work as well. Hadn’t heard about it for a while, but saw the feature release statement for the new version I knew my changes were in. It wasn’t on there. So I reached out to my contact and asked if there was an issue or did it get bumped to a later version or what? So she told me the marketing team that do the release statements decided not to include it. They stated for one, people already expect common formats to be handled. Saying you now handle a format looks bad, since people know you didn’t handle it before and were behind the curve. The second (probably more important) reason was nobody knew what webp even was and it’s only something technical people care about (they probably said nerds, but my contact translated). So no regular customer would be interested and it could only lead to confusion and questions.

    I hope somebody is happy with the work I put in tho. Somebody is going to drag a webp into the system and have it be accepted. Someday… I hope…

    • @_stranger_@lemmy.world
      link
      fedilink
      10820 days ago
      1. Fuck those people for telling you this after you did the work
      2. Those reasons are hard-stop stupid. If they REALLY cared about the marketing they’d release it silently or add a “improvements to image format handling” line and leave it at that.
      • @Thorry84@feddit.nl
        link
        fedilink
        61
        edit-2
        19 days ago

        Maybe I worded it incorrectly. The feature was released in that version. They just didn’t mention it in the release statement they put out to their customers. I’m sure there’s some changelog somewhere people can dig into where it says something like what you mentioned. Or it can just be under “Various small improvements” which they always add as a catch-all.

        So I’m happy, I did the job and got paid. Everyone I worked with was happy. And the feature got released. It’s was just a let down it didn’t get mentioned at all, even though I put quite a lot of work into it.

      • @jj4211@lemmy.world
        link
        fedilink
        1020 days ago

        I will second the suggestion at something like “expanded support for more image formats”. One of my responsibilities is rolling the development log into customer release notes and I agree with the “changes that highlight a previous shortcoming can look bad”, and make accommodations for that all the time. I also try to make sure every developer that contributed can recognize their work in the release notes.

        “Expanded image format support” seems like something that if a customer hasn’t noticed, they would assume “oh they must have some customer with a weird proprietary format that they added but have to be vague about”. If it were related to customer requests, I would email the specific customers highlighting their need for webp is addressed after pushing the release notes

    • Lemminary
      link
      fedilink
      2320 days ago

      I hope somebody is happy with the work I put in tho. Somebody is going to drag a webp into the system and have it be accepted.

      And that was me! I mean, not with your software but with someone else’s years ago. Still, in a weird anachronistic karma sort of way, thank you for caring.

    • @lostbit@feddit.nl
      link
      fedilink
      English
      220 days ago

      a bit related.

      Was working for a comparison engine. Back in the day things where slow. But i made it lightning fast. Pretty proud.

      Untill a few weeks later the manager comes up, and tells me to make it SLOWER!

      apparently users thought it was suss that it was so fast and the results therefore where fake…

    • @randomname@sh.itjust.works
      link
      fedilink
      220 days ago

      Why does this even work though? WEBP and PNG are very different file formats yet for some reason this has always worked for me as well. Is windows automatically converting the files? I haven’t checked if changing the file extension changes the file size.

      • @odelik@lemmy.today
        link
        fedilink
        6
        edit-2
        20 days ago

        WebP is an extended container around the RIFF file format, and contains the RIFF header info. So any container that is built off RIFF, or supports RIFF, can at least interpret the container data that is RIFF compatible and will lose anything that has been extended upon.

  • @Olissipo@programming.dev
    link
    fedilink
    74
    edit-2
    21 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 `` 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)

    • HeyListenWatchOut
      link
      fedilink
      English
      2621 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
        520 days ago

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

      • @Olissipo@programming.dev
        link
        fedilink
        4
        edit-2
        20 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

        • @SpaghettiYeti@lemmy.world
          link
          fedilink
          120 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.

          • @Olissipo@programming.dev
            link
            fedilink
            3
            edit-2
            20 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.

      • @AdrianTheFrog@lemmy.world
        link
        fedilink
        English
        11
        edit-2
        21 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

        • @ILikeBoobies@lemmy.ca
          link
          fedilink
          5
          edit-2
          20 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

      • @Aux@feddit.uk
        link
        fedilink
        English
        -320 days ago

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

    • @TwistyLex@discuss.tchncs.de
      link
      fedilink
      920 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.

        • @TwistyLex@discuss.tchncs.de
          link
          fedilink
          520 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.

          • @bamboo@lemmy.blahaj.zone
            link
            fedilink
            English
            320 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

            • @TwistyLex@discuss.tchncs.de
              link
              fedilink
              220 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.

    • @TrickDacy@lemmy.world
      link
      fedilink
      521 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!

    • @Thorry84@feddit.nl
      link
      fedilink
      321 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.

      • @Olissipo@programming.dev
        link
        fedilink
        720 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

        • @vvvvv@lemmy.world
          link
          fedilink
          English
          220 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.

    • @Fabian@lemmy.zip
      link
      fedilink
      221 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

        • @Valmond@lemmy.world
          link
          fedilink
          120 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.

          • @ILikeBoobies@lemmy.ca
            link
            fedilink
            2
            edit-2
            20 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

        • @Aux@feddit.uk
          link
          fedilink
          English
          -120 days ago

          There are no browsers with jxl support and won’t be for many years to come.

      • @Olissipo@programming.dev
        link
        fedilink
        220 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

  • @StarMerchant938@lemmy.world
    link
    fedilink
    59
    edit-2
    21 days ago

    As someone who sometimes needs a quick and dirty stock image for my work, webp is the bane of my existence. The work computers won’t let me visit sites or install programs/extensions to convert the image, and my document processing programs have no fucking clue what to do with the format. There is an option in Microsoft edge to edit image, and it will dump the result as a .png which is the only workaround I’ve found.

    • zqps
      link
      fedilink
      1820 days ago

      I run Firefox portable with the extension “Save webp as PNG or JPEG”. It has a button to copy directly to clipboard in the format of your choice.

      • @Decq@lemmy.world
        link
        fedilink
        220 days ago

        So much this. I’ve completely forgotten about this issue since I’ve installed that extension.

      • @skisnow@lemmy.ca
        link
        fedilink
        English
        220 days ago

        I usually screenshot it in place with alt-print screen, paste it into paint, crop it to size, and save

    • @edgemaster72@lemmy.world
      link
      fedilink
      English
      420 days ago

      When I save as an image and it comes up as webp I just change the extension dropdown to all files and change the extension to .png in the filename box, hasn’t failed for me yet

  • manxu
    link
    fedilink
    English
    5021 days ago

    The funniest thing is that even some of Google’s own products don’t accept Webp, like Google Voice.

    • @bamboo@lemmy.blahaj.zone
      link
      fedilink
      English
      520 days ago

      Shhhh just be happy Google Voice still exists, and isn’t in the graveyard. Personally I’d take RCS over webp in Google Voice.

      • manxu
        link
        fedilink
        English
        320 days ago

        I feel with you. The product idea is awesome, the implementation is so-so, and progress is backwards. It’s heart-breaking, really, and so sad nobody has a real alternative.

      • @bdonvr@thelemmy.club
        link
        fedilink
        3221 days ago

        webp is completely supported by browsers I think now.

        Websites still get weird about it.

        JXL is supported by Safari and ummmmm mobile Safari.

          • It’s worth pointing out that browser support is a tiny, but important, part of overall ecosystem support.

            TIFF is the dominant standard for certain hardware and processes for digitizing physical documents, or publishing/printing digital files as physical prints. But most browsers don’t bother supporting displaying TIFF, because that’s not a good format for web use.

            Note also that non-backwards-compatible TIFF extensions are usually what cameras capture as “raw” image data and what image development software stores as “digital negatives.”

            JPEG XL is trying to replace TIFF at the interface between the physical analog world and the digital files we use to represent that image data. I’m watching this space in particular, because the original web generation formats of JPEG, PNG, and GIF (and newer web-oriented formats like webp and avif) aren’t trying to do anything with physical sensors, scans, prints, etc.

            Meanwhile, JPEG XL is trying to replace JPEG on the web, with photographic images compressed with much more efficient and much higher quality compression. And it’s trying to replace PNG for lossless compression.

            It’s trying to do it all, so watching to see where things get adopted and supported will be interesting. Apple appears to be going all in on JXL, from browser support to file manager previews to actual hardware sensors storing raw image data in JXL. Adobe supports it, too, so we might start to see full JXL workflows from image capture to postprocessing to digital/web publishing to full blown paper/print publishing.

        • @Jeeve65@ttrpg.network
          link
          fedilink
          420 days ago

          webp is not fully supported by safari and webview on iOS; they cannot export images as image/webp using the toDataUrl or toBlob from a canvas element

    • Dr. Moose
      link
      fedilink
      English
      2120 days ago

      .jxl is still early. Webp is out for 14 years now and if support is missing its completely on the ineptitude of the client and nothing else.

  • Fiona
    link
    fedilink
    3920 days ago

    webp is absofuckinglutely inferior to JPEG-XL and that one is where you actually have that problem. I’m literally providing an avif-fallback on my website, because otherwise pretty much no browser would support anything.

    (Speaking of it, avif is also superior to webp.)

  • @TriflingToad@sh.itjust.works
    link
    fedilink
    English
    2420 days ago

    for my use cases of memes or a PowerPoint type thing once in a while for school. Literally any image format works for me. I don’t care about quality (as long as it’s not REALLY bad) and just want to get the image from Google to the PowerPoint, and somehow GOOGLES own image format fails to work for GOOGLES PowerPoint product.
    I don’t understand how you can not support your own format 10 years after it came out.

    pro tip by the way, you can open it in Microsoft paint then “save as -> .PNG” to get Google slides/whatever to accept it.

    (before someone recommends alternatives, im talking about use on a locked down school computer. I can’t use alternative software that’s better because they block images in WIKIPEDIA, no shot for using an actual foss software lmao)

    • dual_sport_dork 🐧🗡️
      link
      fedilink
      English
      1020 days ago

      use on a locked down school computer.

      Shift + Win + S

      I’ll bet they didn’t disable that in Group Policy. Lasso that sumbitch right off your screen and then just paste it into whatever.

      • Liz
        link
        fedilink
        English
        620 days ago

        Paint trick would leave the option for higher quality, a screen grab leaves you at screen grab resolution.

        • dual_sport_dork 🐧🗡️
          link
          fedilink
          English
          320 days ago

          True, but I’ll wager most of the things people are filching for these purposes get displayed on the screen at 100% scale anyway. Unless you’re sniping a picture for large format print, in which case I figure you’d probably be under less restrictive conditions… Hopefully.

    • @Tigeroovy@lemmy.ca
      link
      fedilink
      220 days ago

      You don’t even have to open it in Microsoft paint, you can just save it as a new format from the standard image viewer software.

    • @finitebanjo@lemmy.world
      link
      fedilink
      120 days ago

      Plus, it makes a bunch of users resort to adding extensions to their browser such as

      “Save webP as PNG or JPEG 1.5.4”

      which is fine but absolutely not as secure as without extensions.

  • Noxy
    link
    fedilink
    English
    1620 days ago

    fucking Telegram automatically converts any webp sent in a message to a fucking sticker

    I didn’t want that. I want the ability to view the image, including zooming in and panning, and telegram forcing it into a sticker kills that completely

  • Rokin
    link
    fedilink
    English
    1621 days ago

    No webp for me, just because Google is pushig it and that is suspect.

    • @TrickDacy@lemmy.world
      link
      fedilink
      1221 days ago

      Lol it’s like 10 years old at this point. Not sure they’re pushing it anymore. I think files that are half the size sell themselves

  • @phantomwise@lemmy.ml
    link
    fedilink
    English
    13
    edit-2
    20 days ago

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

    • @Overshoot2648@lemm.ee
      link
      fedilink
      2120 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.

    • @JigglySackles@lemmy.world
      link
      fedilink
      320 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.

      • @valtia@lemmy.world
        link
        fedilink
        15
        edit-2
        20 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

          • @valtia@lemmy.world
            link
            fedilink
            1120 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

            • @tempest@lemmy.ca
              link
              fedilink
              219 days ago

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

            • Raltoid
              link
              fedilink
              English
              019 days ago

              I’m sure google doesn’t …

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