• dan@upvote.au
      link
      fedilink
      arrow-up
      21
      arrow-down
      8
      ·
      edit-2
      4 months ago

      What’s wrong with WebP? It’s a modern format with smaller file sizes, and most software supports it. It’s very commonly used online these days instead of the legacy formats.

      • ninjabard@lemmy.world
        link
        fedilink
        arrow-up
        19
        ·
        4 months ago

        I download memes to share them. Messenger does not like webp. It literally won’t allow me to send the image. I then have to edit the image just so I can send it. Now I have two copies of the same meme.

          • Baku@aussie.zone
            link
            fedilink
            English
            arrow-up
            4
            ·
            4 months ago

            Google docs and sheets don’t support WebP either. Always ironic when they made the fucking format

        • dan@upvote.au
          link
          fedilink
          arrow-up
          2
          ·
          4 months ago

          I thought WebP was fixed in Messenger a while back. You mean Facebook Messenger, right? I’ll see if I can figure out what’s up.

          • ninjabard@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            4 months ago

            Yes. Facebook Messenger. I thought it had been fixed as well. It used to give an icon over the pic in the photo roll signifying it wouldn’t send. Now the icon is gone and I don’t find out until after failing to send it.

        • RecluseRamble@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          edit-2
          4 months ago

          Which messenger? Signal and WhatsApp support it.

          Edit: saw your reply below, it’s Facebook Messenger. Yeah, that’s a whole other problem of its own.

        • webghost0101@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          4 months ago

          Just rename it into a .jpg extension instead

          Seems to just work for what i need them for ¯_(ツ)_/¯

          Ive had one or two that didn’t but i could open then in gimp and export that way.

          • dan@upvote.au
            link
            fedilink
            arrow-up
            8
            ·
            edit-2
            4 months ago

            Just rename it into a .jpg extension instead

            Seems to just work for what i need them for ¯_(ツ)_/¯

            This usually means the app supports WebP but is doing something dumb like allowing the WebP file type but not the .webp file extension. If that’s the case, it’s often a one-line code fix.

      • Mike@lemmy.ml
        link
        fedilink
        English
        arrow-up
        19
        arrow-down
        1
        ·
        4 months ago

        Photoshop only recently supported webp natively. Windows barely supports webp.

        Inb4 “have you heard of linux”

        • dan@upvote.au
          link
          fedilink
          arrow-up
          9
          arrow-down
          1
          ·
          4 months ago

          AFAIK Windows has supported WebP since Windows 10 1809.

          • Mike@lemmy.ml
            link
            fedilink
            English
            arrow-up
            5
            ·
            edit-2
            4 months ago

            In what capacity? Because the Photos app does not. Hence ‘barely’. Also HEIC support is globally shit. Apple can eat a dick.

            • dan@upvote.au
              link
              fedilink
              arrow-up
              3
              arrow-down
              1
              ·
              edit-2
              4 months ago

              In what capacity?

              The built-in APIs for handling images (GDI+) added WebP support in 1809. This is mentioned in the the documentation for the drawing library in C#/.NET, which is a wrapper around GDI+: https://learn.microsoft.com/en-us/dotnet/api/system.drawing.imaging.imageformat.webp?view=net-8.0

              I haven’t tried it in the Photos app recently, and don’t have a Windows system handy right now to try it out, but I know it works for sure in Paint, which uses GDI+ for image encoding/decoding (and thus supports all formats that Windows itself supports).

              Of course, apps that use their own encoding/decoding code might have fewer features and support fewer formats than the native Windows code.

              Edit: Apparently it works fine in the Photos app if you just change the extension? Which means Microsoft is doing something weird. The code to decode WebP must be there.

              • cheddar
                link
                fedilink
                arrow-up
                3
                ·
                4 months ago

                The built-in APIs for handling images (GDI+) added WebP support in 1809.

                The end user doesn’t work with Windows API. The end user works with web sites and apps, which are rarely native these days. And there you’re often limited to png/jpg for uploads.

        • pyre@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          4 months ago

          is “recently” less than 15 hours ago because that’s when the comment was made

      • lemmyng@lemmy.ca
        link
        fedilink
        English
        arrow-up
        8
        ·
        4 months ago

        Good luck using webp in any kind of collaborative diagramming software.

        • dan@upvote.au
          link
          fedilink
          arrow-up
          6
          arrow-down
          1
          ·
          edit-2
          4 months ago

          Why does that software not support modern formats though?

          WebP has been around for over 10 years and practically all programming languages have image libraries that support it. Windows has had native support since Windows 10 1809, so any apps using Windows’ native image encoding/decoding should support it.

          • lemmyng@lemmy.ca
            link
            fedilink
            English
            arrow-up
            6
            ·
            4 months ago

            Maybe because in those scenarios PNG offers sharper images, which is more important than compression when you have complex diagrams. Or because webp is more CPU intensive, and PNG gives better performance when rendering. Or because of CVE-2023-4863.

            • dan@upvote.au
              link
              fedilink
              arrow-up
              7
              ·
              4 months ago

              PNG offers sharper images, which is more important than compression when you have complex diagrams

              WebP supports both lossy and lossless compression. Diagrams should use lossless compression so the image does not lose any quality.

              PNG gives better performance when rendering

              Images on the web usually aren’t large enough for this to make a significant difference, and it can sometimes be offset by the quicker download time.

              because of CVE-2023-4863.

              libjpeg and libpng have had a number of CVEs too though.

              • lemmyng@lemmy.ca
                link
                fedilink
                English
                arrow-up
                1
                ·
                4 months ago

                WebP supports both lossy and lossless compression.

                WebP did not always support lossless compression. It’s conceivable that the tools’ developers made the decision before that.

                Images on the web usually aren’t large enough for this to make a significant difference, and it can sometimes be offset by the quicker download time.

                That does not fit the use case of diagramming tools. They usually have comparatively few assets that are used multiple times in the same document. The larger the document, the more benefit lower CPU cost has. And I’ve seen LARGE diagrams.

                libjpeg and libpng have had a number of CVEs too though.

                Fair. I’m just speculating that it might be a contributing factor for the tools still not supporting the format.

                • dan@upvote.au
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  4 months ago

                  WebP did not always support lossless compression. It’s conceivable that the tools’ developers made the decision before that.

                  WebP was first released in 2010, and lossless support was added in 2011. I really doubt there were tools built between 2010 and 2011 that haven’t been updated since then.

                  That does not fit the use case of diagramming tools. They usually have comparatively few assets that are used multiple times in the same document.

                  SVG is probably a better fit for this use case.

      • Muscar@discuss.online
        link
        fedilink
        arrow-up
        5
        ·
        4 months ago

        Sync for Lemmy decided to absolutely destroy the quality of your image so I thought being unable to read it was the joke, but I still decided to spend what ended up being WAY too much time to figure it out from the few pixels available… and then I accidentally tapped on it and the normal readable version opened. This multilayered brain fart and subsequent realization humbled me in an odd way, feels weirdly good.

        Here’s what it looks like:

  • laranis@lemmy.zip
    link
    fedilink
    arrow-up
    26
    ·
    4 months ago

    This is one of those memes that divides people. I’m proud to say I’m on the side who guffawed loudly and drew glances from strangers.

  • proti@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    4 months ago

    On PC you can often drag an image before you download it.
    You’ll see if it’s really transparent or just with a checkerboard pattern.

  • ChickenLadyLovesLife@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    3
    ·
    edit-2
    4 months ago

    I wrote a TV guide app for Blackberry many years ago, and for the parts of the grid where the data had not yet downloaded, I drew (in code) a light checkerboard background like this. Got into a long-running argument with my company’s UX guy over it because he said it was a visual element that implied transparency when there wasn’t actually any transparency. So pointless - it wasn’t an app for image manipulation in the first place. I gave the darker squares a light blue tint and he left me alone, and then Blackberry died a quick death anyway.

    The moral of the story is one that I took to heart for all my future mobile development: nothing matters, just go home and smoke another bowl.

    • nifty@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      4 months ago

      Eh I’d agree with the UX guy. We get away with a lot flexibility in software dev that we can’t in other engineering, like mechanical or civil