• yesman@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    If you want to save a *.webp file, just change the extension to *.png. There is no need for a converter.

    • AntiGuide@feddit.org
      link
      fedilink
      Deutsch
      arrow-up
      0
      ·
      10 months ago

      Are you sure? Maybe your image viewer adapts to the magic number and recognizes the webp file as webp anyway. I believe the formats are fundamentally different.

    • corus_kt@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      Note: this DOES NOT convert the file (obviously) although it will force it to be ‘usable’ in certain cases. If you bring the same file to a program that cannot work with webp format (ex. Da Vinci Resolve), it will crash or not show. To non-creators this is not an issue, but for creators: have fun figuring out which images you’ve saved are actually webp and won’t work later on.

      I know webp has become much less annoying after windows finally added webp support to photos after w11, so ‘advice’ like this tends to work more often than not. Just use a browser extension and convert it properly if you intend to spread an image…

      • Victor@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        have fun figuring out which images you’ve saved are actually webp

        file * | grep -i webp or something?

    • mke@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      10 months ago

      Is this comment meant in jest? If not, could you explain what exactly you mean by “no need for a converter?”

      I’m quite certain that’s not how it works. No actual file data conversion is happening when you do that unless you’re using additional tools e.g. extensions.

      • Pirasp@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        Iirc .webp supports a fallback to PNG compression, so this actually works with some.webp files. I could be completely wrong tho.

        • mke@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          10 months ago

          Hey, thanks for the input. I’d like to read more about this, but I can’t seem to find anything related online. Anything else you could share?

          Just checking, you sure you’re not confusing fallback-to-PNG when the browser doesn’t support webp? Because that’s a bit of separate issue, and not a terribly relevant one since all major browsers have supported webp for a while now.

          • Poppa_Mo@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            10 months ago

            You could’ve tried it yourself in the time it took you to craft this reply.

            It has nothing to do with the browser. Change extension or just save originally as .png instead of .webp

            Can pop the file right open in any image editor that can fart with pngs, post directly anywhere else, like Discord.

            • mke@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              10 months ago

              I think I know what you’re talking about, and I think you might have misunderstood a few things. I’ll explain my point and I’d appreciate it if you could confirm later whether it helped, or if I’m the one who misunderstood you.

              “Saving as…” is, usually, just for setting the name of the file. The full filename, extension included. The extension is just another part of the name. It doesn’t define what rules the file’s contents actually follow. They’re for other purposes, such as helping your operating system know which software to use when opening each file. For example:

              User double clicks a .pdf System: Oh, I should try opening this in Adobe Acrobat.

              But that doesn’t mean the file is actually a PDF. You can change the extension of any file, and it won’t automatically be converted to that extension (unless a specific feature has been added to make that implicit conversion). You could give a binary a .pdf extension and your system might then try opening it in Acrobat. Of course, it won’t work—there’s no way the system could have automatically made that conversion for you.

              So you might wonder, why does your (fake) PNG (which is really just a webp with an incorrect extension) still work just fine? You can open it, view it, send it. What’s the trick?

              Thing is, the software that actually deals with those files doesn’t even need to care about the extension, it’s a lot smarter than that. These programs will use things like magic bytes to figure out what the file they’re handling really is and deal with it appropriately.

              So in this scenario, the user could save a webp file as PNG.

              funny cat.png (still a webp!)

              Then they might double click to open it.

              System: How do I open a .png again?

              • .webp -> try the image viewer
              • .jpeg -> try the image viewer
              • .png -> try the image viewer (there it is)

              And finally, the image viewer would correctly identify it as a webp image and display it normally.

              Image viewer: reading magic bytes… Image viewer: yeah, that’s a webp alright

              The user might then assume that, since everything works as expected, they properly converted their webp to a PNG. In reality, it’s all thanks to these programs, built upon decades of helping users just make things work. Same with Discord, Paint.NET, etc. Any decent software will handle files it’s meant to handle, even if they aren’t properly labeled.

              If you were to check the file contents though, using a tool like file, czkawka to find incorrect extensions, or even just checking image properties, it should still be identified as a webp.

              I didn’t try it myself as you said because, to my understanding of files and software, doing so made no sense. But again, do tell if I got something wrong or misinterpreted your comment.

            • Victor@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              10 months ago

              You could’ve tried it yourself in the time it took you to craft this reply.

              God I hate it when people have no social skills and talk like this.

              How the f— do you know the circumstances of the person you’re talking to? Maybe they don’t have a computer at hand.

              Don’t you realize how snotty and bratty and annoying this sounds, regardless?

              Bah.

  • GardenVarietyAnxiety@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    I hate it as much as anyone else at the moment, and maybe I’m just an optimist, but once more support starts rolling out I think it’s going to be great.

      • Gakomi@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        No I don’t think it does but it works. Specifically I download webp pictures on pc and when I try to send them on WhatsApp it does not recognise them so I change the extension to JPG or PNG and it works it sends them and they can be viewed.

        • tweeks@feddit.nl
          link
          fedilink
          arrow-up
          0
          ·
          10 months ago

          Sounds like the file type verification on WhatsApp is not on mime-type but only on extension. Some receivers might have trouble opening these though.

  • dezmd@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    10 months ago

    Is it still a meme when you feel it in your soul?

    I don’t know why, maybe because it’s Sunday morning and I’m just drinking my coffee and browsing around while the rest of the house sleeps in, but this triggered a rabbit hole for me. I already have a lil plugin just for quickly saving direct to PNG or JPG when I right click a WebP in my browsers, but I SHOULDN’T GODDAMN HAVE TO.

    WEBP as a wrapper (as coupled along with AVIF/AV1/VP8/etc) seems all about reassertion of corporate control of web file formats by pivoting codecs back toward patent encumbrance as a control factor, just without universal royalty hooks attached to anyone that touches even free and open software utilizing it. We were actually FREE of that bullshit for a short time. PNG has no patent encumbrance. GIF, MP3, MPEG-1, MPEG-2, MPEG-4 Part 2 all have expired patents and can be used freely.

    [Don’t get me wrong, MPEG as an org was and is pure corruption and greed, and MPEG-4 Part 2 adoption was fully diminished outside of ‘free’ circles based on their stated intention to apply a ‘content fee’ to the royalty requirements. It’s obvious why VP8 -> AV1 had to happen one way or another to break their royalty cabal insanity, but it still doesn’t taste good at all. https://en.wikipedia.org/wiki/MPEG-4_Part_2 ]

    The consortium of companies behind WebP and AV1 are all taking part in the enshittification of the entire technology sector, from web sites and web apps, operating systems, and application ecosystems. Why would we ever trust them to not rug pull the ‘irrevocable but revocable’ patent license scheme? They only put it together in the first place to end run having to pay someone who was ‘not them’ any royalties for image/video/audio encoding.


    References:

    WEBP is patent encumbered.

    https://en.wikipedia.org/wiki/WebP

    https://github.com/ImageMagick/webp/blob/main/PATENTS

    Google hereby grants to you a perpetual, worldwide, non-exclusive, no-charge, royalty-free,** irrevocable (except as stated in this section) patent license** to make, have made, use, offer to sell, sell, import, transfer, and otherwise run, modify and propagate the contents of these implementations of WebM, where such license applies only to those patent claims, both currently owned by Google and acquired in the future, licensable by Google that are necessarily infringed by these implementations of WebM. This grant does not include claims that would be infringed only as a consequence of further modification of these implementations.

    GIF is not patent encumbered since 2004.

    https://en.wikipedia.org/wiki/GIF

    In 2004, all patents relating to the proprietary compression used for GIF expired.

    PNG was never patent encumbered.

    https://en.wikipedia.org/wiki/PNG

    PNG was developed as an improved, non-patented replacement for Graphics Interchange Format (GIF)—unofficially, the initials PNG stood for the recursive acronym “PNG’s not GIF”.

    AV1, VP8, VP9, and other modernized “open source” or “free” Video Codecs all appear to be patent encumbered.

    https://news.ycombinator.com/item?id=23747923

    https://en.wikipedia.org/wiki/AV1

    https://en.wikipedia.org/wiki/AVIF

    https://en.wikipedia.org/wiki/VP8

    • barsoap@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      10 months ago

      This grant does not include claims that would be infringed only as a consequence of further modification of these implementations.

      IANAL but what they’re saying here seems to be “if you download our code and modify it and, with that modification, touch some other patent of ours we can still have your ass”. That is, the license they’re giving out only cover the code that they release. Which shouldn’t be too controversial, I think.

      The issue with codecs in general is that there’s plenty of trolls around and coming up with any audio or video codec is probably going to hit one of their patents, so the best that FLOSS codecs can do is “we don’t have any patents on this” or “we do have patents on this but license them freely, also, if someone else goes after you we’re going to detonate a patent minefield under their ass”. Patent portfolios have essentially reached the level of MAD.

      Personally, IDGAF: Software patents aren’t a thing over here. You only have to worry about that stuff if you’re developing silicon.

    • uis@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      10 months ago

      AV1, VP8, VP9, and other modernized “open source” or “free” Video Codecs all appear to be patent encumbered.

      MPEG LA(patent trolls, not to be confused with ISO MPEG) tried to claim that AV1 uses their patents, but failed.

  • brucethemoose@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    Webp works fine for me now.

    The problem is AVIF. I mean I love AVIF (almost as much as JPEG-XL), but it doesn’t work with anything except browser web pages, even after all this time.

    • Dozzi92@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      For me webp is always some gif I’m trying to text people, and now I have to go convert it.

    • Emerald@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      My only concern with jpeg xl is… how do you know if the encoded file is losslessly compressed or not?

      with jpg and png, one is lossless, one is not. But if all the files have a jxl extension, you can’t know unless the encoder adds metadata for it, right?

      • Persi@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        I felt the same way about webp when it came out.

        In practice it doesn’t really matter:

        • if you’re encoding the file you know how you’re doing it.
        • if you’re receiving the file, you get the pixels you get no matter how it was encoded.
        • if you’re sending the image through some third party service, they’re going to reencode and mangle it anyway so there’s no point in worrying.

        Also, it turned out that even if it’s quite good, lossless webp is rarely seen in the wild because svg is more convenient.

      • force@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        10 months ago

        I have plenty of WEBP and every image editing/viewing application I have installed can use it fine. Including, but not limited to:

        pdn, GIMP, Krita, Aseprite, InkScape, OpenToonz, IrfanView

        I think Apple users have issues with Webm & Webp? But the issue here is using Apple products in the first place. Losing 90% of basic functionality is what you expect when using one of those.

      • derpgon@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        All the memes I send to my friends on messenger basically come from Lemmy. I always have to download the image and use the phone image editor to crop it by one pixel. It then let’s me save it, and it saves as jpg/png by default.

    • thirteene@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      Skill issue, the only actual drawback is that some legacy systems whitelisted image extensions and haven’t been updated. Even then just take a screenshot and upload that.

  • MentalEdge@sopuli.xyz
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    Old meme.

    Pretty much everything supports it now, and in case you haven’t noticed pretty much all the images on Lemmy are webp because it lets instances save tons and tons on bandwidth and storage.

    The next “better but not yet supported” image format is .avif.

      • MentalEdge@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        Yeah it uses the AV1 video codec for compression. Which go figure, works reaöly well for images, too! And the format can do animated images, too.

        • boonhet@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          10 months ago

          Cool, a replacement for GIFs too.

          Next you’ll tell me you can add sound to it and make AVIFs with sound, won’t you?

          spoiler

          Someone once said something to the tune of “Imagine if GIFs could have sound”, to which people pointed out that those are just called videos.

              • dezmd@lemmy.world
                link
                fedilink
                English
                arrow-up
                0
                ·
                10 months ago

                Now we just need a Brandon Lee Mulligan flavored fully charged rant about the billionaire class of corporatists forcing webp with its patent encumbrance on us all.

        • BehindTheBarrier@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          10 months ago

          I actually decided to use avif on my project. But both this and webp is as fast as I know, not supported in any default image viewer on windows. Which is rater annoying, but I moved on to better programs for tgat anyways.

          Avif is second to jxl though, some of the downsides of being a video format is that you loose progressive loading (only top to bottom iirc), degrades on re-encodes, and some other things I can’t think of. Avif gets a win because if you have a av1 decoder you already have a avif decoder too! But since it is a video frame essential there are some downsides since some image specific features can’t or won’t be added.

          • uis@lemm.ee
            link
            fedilink
            arrow-up
            0
            ·
            10 months ago

            Also if you have video in AV1, you can rip out Group Of Frames from it and package in avif without any loss.

    • Dicska@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      Not the end of the world, but out of the few apps that don’t fit in the ‘pretty much everything’ group, messenger is one of them and I can’t share a good bunch of memes on Lemmy with my friends because of that. I usually end up screenshotting my own screen because of that.

      • MentalEdge@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        10 months ago

        The format was introduced 13 years ago. Meta had the time, and we know they have the resources.

        This is 200% on messenger being shit piece of crap software.

        • meseek #2982@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          10 months ago

          Every time I have to fire up my Fb account, I’m stunned at how shit React is. It’s appalling how bad that framework has become. Maybe if they cared about implementing solid code and less about raping your life of metadata in order to sell you the worst products on the planet thru their “partners” things would be better.

    • caseyweederman@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      Okay can someone please explain why Facebook Messenger on my phone keeps saying it can’t support gifs? Yes yes I’m an old man, but on the other hand what the fuck, fucking gifs? Are they devolving faster than Google?
      (Also like, the gif feature built into Facebook Messenger itself. The longer I think about this problem, the more I think the app is just throwing the wrong error)

    • Furbag@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      I’ll change my mind about .webp when Microsoft Teams can recognize it as an image and display it correctly.

      • MentalEdge@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        I’ll say the same thing about teams as I did messenger.

        The format was introduced 13 years ago. MS had the time, and we know they have the resources.

        This is 200% on teams being shit piece of crap software.

    • meseek #2982@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      What doesn’t support avif? Even Apple devices support it and they are usually the last to adopt anything. I’ve crushed all my website using it and it turns a 1MB image to 80KB without quality loss, absolutely amazing compression!

      • MentalEdge@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        In websites it works great, there isn’t browser around that can’t deal with it. Same how with when webp we’re new you’d run into them all over the web because there they were just better and worked fine.

        It’s everything else that isn’t ready yet. My older android device can’t deal with them in apps, no AV1 decoder maybe? Dunno.

        • meseek #2982@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          10 months ago

          Not many processors have AV1 hardware decoders yet (Apple thru them in on their M3’s last year and latest iPhone 15 Pros) so I can’t see it being that. There’s also software decoding that works fine. My wallpaper on macOS has been avif since last year (Sonoma) and works without issue. I don’t think it works in Windows 10 tho. No issues with the latest Ubuntu and I’m not familiar at all with Android OS.

          In any case, I think it’s the best thing to come out in a long time. My website with raw PNGs was about 120MB. I crushed those PNGs with noticeable quality loss down to 50MB. I then crushed the original 120MB down to 60MB with minimal to no visual quality loss using webp. But I got it down to 25MB without loss using avif at 85% compression. Just insane performance, couldn’t be more impressed!