I don’t know what a .webp file is but I don’t like it. They’re like a filthy prank version of the image/gif you’re looking for. They make you jump through all these hoops to find the original versions of the files that you can actually do anything with.

Edit: honestly I assumed it had something to do with Google protecting themselves from image piracy shit

  • Ⓑⓡⓞⓚⓔⓝ
    link
    fedilink
    111 months ago

    Jpg is ancient, and gif, holy shit gif is from stone age

    Where does PNG stand in this timeline?

    • @WhoRoger@lemmy.world
      link
      fedilink
      711 months ago

      I think PNG is a good format even today. It’s lossless compressed, so there isn’t that much you can squeeze out of that with new algorithms as you can out of lossy formats with new and smarter approaches.

      Sadly, PNG is being terribly misused on the internet too. What it’s good for is simple drawn graphics, which it can compress to oblivion. So it’s perfect for screenshots of say, your operating system’s windows. I took a sshot as I’m typing this, and it came out as 190 kB. Not bad.

      But what it’s so commonly used for, is people taking screenshots of photos such as from Instagram, and then reposting them. So instead of a tiny and shitty 50 kB IG picture, you get a 1.5MB PNG screenshots. Some then recompress it to a 1.5MB JPG for “maximum quality” when they realise they can’t upload PNG to photo sites.

      I also very often encounter huge PNG photos with their extensions changed to JPG, and I don’t know how or why that is happening.

      • Jamie
        link
        fedilink
        211 months ago

        I also very often encounter huge PNG photos with their extensions changed to JPG, and I don’t know how or why that is happening.

        Probably people uploading to sites that limit extensions thinking they’re clever by just changing the extension, or being straight up wrong in thinking the extension changing actually changes the file type.

        The sites might not bother to check the metadata, and anything worth any salt that displays the image will ignore the extension anyway.

        • @WhoRoger@lemmy.world
          link
          fedilink
          211 months ago

          That sounds logical, but on most operating systems these days the extension is hidden, and/or you need to go through some hoops to change it. So I would think that most people who think that wouldn’t even know how to change it.

          But more importantly, where do those PNGs come from in the first place? Sure, some are clearly screenshots such as of IG or TT, but there are tons of large PNG images that are clearly photos from cameras that someone just took and resaved as png (and later, or someone else, then renamed to jpg).

          I could understand that happening occasionally for a bunch of reasons, but I’ve encountered this so many times, it’s pretty bizarre.

          Btw it’s something you might not even notice if you aren’t using e.g. an image viewer that uses a different icon or background based on actual image type.

          • Jamie
            link
            fedilink
            111 months ago

            I suppose another solution might be that it falls under those lines, but some misbehaving services where they’re uploaded are giving out improper filenames and not confirming the type.

            Though I can’t imagine many of those being incredibly popular, or, it’s just that images are recycled for so long that eventually many of them hit such a site in their lifetimes.

              • Jamie
                link
                fedilink
                111 months ago

                Yet you still posted it in jpeg. Can’t fool me with your sly tricks.

                Input #0, image2, from '85974f2f-5463-40ba-93ea-45417c183fcc.jpeg':
                  Duration: 00:00:00.04, start: 0.000000, bitrate: 54211 kb/s
                  Stream #0:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1513x947, 25 fps, 25 tbr, 25 tbn
                
                  • Jamie
                    link
                    fedilink
                    1
                    edit-2
                    11 months ago

                    Just for you, I turned it into webp and made it 40KB. I could have also made it look less like garbage, but then it would have been 50KB, which is unacceptable.

            • @WhoRoger@lemmy.world
              link
              fedilink
              111 months ago

              After reading through more comments in this discussion, maybe I have my answer, at least partially. A lot of people here suggest to use extensions and other ways to convert webp from the web to… PNG.

              And then that PNG gets shared further…

              Oh gawd if that’s why so many pngs are on the net… What a way to take a good idea and completely fuck it up. Now instead of a 2MB jpeg or 0.5MB webp we deal with 10MB pngs 🤦‍♂️

      • @elephantium@lemmy.world
        link
        fedilink
        211 months ago

        people taking screenshots of photos such as from Instagram

        This one really grinds my gears. Why do so many people insist on sharing text by taking a picture instead of pasting the text? Or better yet, just linking to the original? It’s such a waste of bandwidth :(

    • qaz
      link
      fedilink
      311 months ago

      It supports features such as lossless editing and transparency but the compression is pretty bad.

      • @WhoRoger@lemmy.world
        link
        fedilink
        611 months ago

        It’s lossless, it’s meant for 2D and drawn graphics. Can’t do that much with lossless compression.

        • nulldev
          link
          fedilink
          6
          edit-2
          11 months ago

          It’s still bad compared to modern lossless algorithms. PNG is very old and even though PNG encoders have evolved, it is still fundamentally a decade behind modern lossless compression algorithms.

          For example: JPEG XL in lossless mode compresses at least 30% better than PNG.

          Also, PNG is not actually lossless in many cases. PNG only supports RGB colorspaces. If you try to store anything that’s not in an RGB colorspace (e.g. a frame of a video) in a PNG, you will lose some color information as colorspace conversion is not lossless. Example of someone running into this issue: https://stackoverflow.com/q/35399677

          JPEG XL supports non-RGB colorspaces so you don’t have this problem.

          • @WhoRoger@lemmy.world
            link
            fedilink
            211 months ago

            Okay but that difference is not as critical as with jpg, which are also more abundant. The bigger problem with png is that people use it for things it’s not meant or designed for - frame of a video being case in point.

            If anything, it just proves how lacking we are in other image formats, when we keep shoehorning clipart formats like png and gif into other duties. Well not lacking as in not having them, but not using them.

            • nulldev
              link
              fedilink
              1
              edit-2
              11 months ago

              There’s no real reason why you shouldn’t use PNG for a frame of video. I’m not talking about using it as a video format, I’m talking about extracting a frame from a video and sending it off to an editor for inclusion in another video or image.

              As a user, I would expect that I could use the most popular lossless image format if I want to losslessly share a frame from a movie with someone.

              Of course I do agree that we need adoption of other image formats. We really should not still be cramming everything in PNGs or JPGs in 2023.

              • @WhoRoger@lemmy.world
                link
                fedilink
                111 months ago

                There is, exactly because png is made for strict rgb colorspace. Especially today when videos can be in HDR and with all kinds of color correction shenanigans, so which you won’t get back once you try to put the PNG back into the video.

                But I’m not a video editor, so I don’t know what still format is best suited for this. I imagine real editors can deal with it, and for regular people who just make screenshots for memes, it’s good enough. As I said, png is still a good enough format, but let’s not use it for stuff like converting webp photos for further sharing.

                • nulldev
                  link
                  fedilink
                  211 months ago

                  I think we generally agree but I just want to clarify anyways. I’m not saying we should use PNG to store frames from videos.

                  What I am saying however, is that we should replace PNG with a modern lossless image format that is more flexible so users don’t have to deal with these issues. All this colorspace stuff should be automatically handled and I shouldn’t have to worry about it not being lossless. If I want to save a frame of video, I should be able to do it using an image format that everybody recognizes and accepts, it should not be a huge hassle and it should be fully lossless.

                  • @WhoRoger@lemmy.world
                    link
                    fedilink
                    211 months ago

                    Yes. The problem is getting developers/companies to support anything beyond than just the basics. There’s enough formats that could work, but if the big players only support these formats, everything else is secondary. Just like many music players still play only mp3.

      • Shurimal
        link
        fedilink
        311 months ago

        PNG compresses like nothing else when it comes to graphs, text, UI elements, digital drawings, comics, screenshots from apps etc. And doesn’t suffer from “mosquito” artifacts and other .jpg nonsense. It was never meant to be used for photographs and other statistically “noisy” images for which .jpg works much better.

        • @WhoRoger@lemmy.world
          link
          fedilink
          211 months ago

          Isn’t it funny how the internet is full of Instagram screenshots in PNG, and Twitter screenshots in JPG?

          It feels like some extra-dimensional aliens are fucking with us and making everything backwards.