Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programming
  3. PNG is back!

PNG is back!

Scheduled Pinned Locked Moved Programming
34 Posts 25 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • thingsiplay@beehaw.orgT [email protected]

    I remember MNG and never understood why APNG wasn't officially recognized. I didn't know it was widely supported already. Why do people still create and use GIF in the internet, if there is a superior format?

    tal@lemmy.todayT This user is from outside of this forum
    tal@lemmy.todayT This user is from outside of this forum
    [email protected]
    wrote last edited by [email protected]
    #12

    At least at one point, GIF89a (animated GIF) support was universal among browsers, whereas animated PNG support was patchy. Could have changed.

    I've also seen "GIF" files served up online that are actually, internally, animated PNG files, so some may actually be animated PNGs. No idea why people do that.

    1 Reply Last reply
    2
    • M [email protected]

      PNG has terrible compression and It’s lossless unless you crush the colors. Transparency has been pretty much the only reason to use it.

      tal@lemmy.todayT This user is from outside of this forum
      tal@lemmy.todayT This user is from outside of this forum
      [email protected]
      wrote last edited by [email protected]
      #13

      PNG has terrible compression

      It's fine if you're using it for what it's intended for, which is images with flat color or an ordered dither.

      It's not great for compressing photographs, but then, that wasn't what it was aimed at.

      Similarly, JPEG isn't great at storing flat-color lossless images, which is PNG's forte.

      Different tools for different jobs.

      D 1 Reply Last reply
      33
      • tal@lemmy.todayT [email protected]

        PNG has terrible compression

        It's fine if you're using it for what it's intended for, which is images with flat color or an ordered dither.

        It's not great for compressing photographs, but then, that wasn't what it was aimed at.

        Similarly, JPEG isn't great at storing flat-color lossless images, which is PNG's forte.

        Different tools for different jobs.

        D This user is from outside of this forum
        D This user is from outside of this forum
        [email protected]
        wrote last edited by [email protected]
        #14

        JPEG isn't great at storing flat-color lossless images, which is PNG's forte.

        JPEG isn’t, but JPEG-XL, on the other hand, has come into existence and has great compression while being pixel-perfect lossless as compared to PNG (among a host of other improvements).

        If only it got the support it deserves (thanks Google for making that harder)

        1 Reply Last reply
        15
        • jwr1@kbin.earthJ [email protected]

          After 20 years, PNG is back with renewed vigor! A new PNG spec was just released.

          M This user is from outside of this forum
          M This user is from outside of this forum
          [email protected]
          wrote last edited by
          #15

          Possibly the final version. Quite Okay Imaging (QOI) achieved similar compression with none of the complexity. Lossy + difference = lossless formats are surely the better option where performance is not crucial. Even the fact they fffucking finally made APNG official is decades late to replace GIF, since several image formats are now literally video formats.

          The future is webp. And telling software patents to burn in hell.

          spartanatreyu@programming.devS F 2 Replies Last reply
          5
          • M [email protected]

            Possibly the final version. Quite Okay Imaging (QOI) achieved similar compression with none of the complexity. Lossy + difference = lossless formats are surely the better option where performance is not crucial. Even the fact they fffucking finally made APNG official is decades late to replace GIF, since several image formats are now literally video formats.

            The future is webp. And telling software patents to burn in hell.

            spartanatreyu@programming.devS This user is from outside of this forum
            spartanatreyu@programming.devS This user is from outside of this forum
            [email protected]
            wrote last edited by
            #16

            The future is webp JPEG XL...

            And telling software patents to burn in hell.

            M 1 Reply Last reply
            12
            • M [email protected]

              Possibly the final version. Quite Okay Imaging (QOI) achieved similar compression with none of the complexity. Lossy + difference = lossless formats are surely the better option where performance is not crucial. Even the fact they fffucking finally made APNG official is decades late to replace GIF, since several image formats are now literally video formats.

              The future is webp. And telling software patents to burn in hell.

              F This user is from outside of this forum
              F This user is from outside of this forum
              [email protected]
              wrote last edited by
              #17

              As cool and impressive as Qoi is, as long as I can't just send it to someone it's sadly not a replacement for PNG.

              M 1 Reply Last reply
              4
              • tal@lemmy.todayT [email protected]

                What's next?

                I know you all immediately wondered, better compression?. We're already working on that. And parallel encoding/decoding, too! Just like this update, we want to make sure we do it right.

                We expect the next PNG update (Fourth Edition) to be short. It will improve HDR & Standard Dynamic Range (SDR) interoperability. While we work on that, we'll be researching compression updates for PNG Fifth Edition.

                One thing I'd like to see from image formats and libraries is better support for very high resolution images. Like, images where you're zooming into and out of a very large, high-resolution image and probably only looking at a small part of the image at any given point.

                I was playing around with some high resolution images a bit back, and I was quite surprised to find how poor the situation is. Try viewing a very high resolution PNG in your favorite image-viewing program, and it'll probably choke.

                • At least on Linux, it looks like the standard native image viewers don't do a great job here, and as best I can tell, the norm is to use web-based viewers. These deal with poor image format support support for high resolutions by generating versions of the image at multiple pre-scaled levels and then slicing the image into tiles, saving each tile as a separate image, so that a web browser just pulls down a handful of appropriate tiles from a web server. Viewers and library APIs need to be able to work with the image without having to decode the whole image.

                  gliv used to do very smooth GPU-accelerated panning and zooming --- I'd like to be able to do the same for very high-resolution images, decoding and loading visible data into video memory as required.

                • The only image format I could find that seemed to do reasonably well was pyramidal TIFF.

                I would guess that better parallel encoding and decoding support is likely associated with solving this, since limiting the portion of the image that one needs to decode is probably necessary both for parallel decoding and for efficient high-resolution processing.

                D This user is from outside of this forum
                D This user is from outside of this forum
                [email protected]
                wrote last edited by
                #18

                Yeah, I have a couple over 800MB PNGs that I can only get Gimp to open properly. I need to look into pyramidal TIFFs.

                1 Reply Last reply
                1
                • jwr1@kbin.earthJ [email protected]

                  After 20 years, PNG is back with renewed vigor! A new PNG spec was just released.

                  captainastronaut@seattlelunarsociety.orgC This user is from outside of this forum
                  captainastronaut@seattlelunarsociety.orgC This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #19

                  May webp die a horrible death in its wake!

                  F laggykar@programming.devL 2 Replies Last reply
                  12
                  • tal@lemmy.todayT [email protected]

                    What's next?

                    I know you all immediately wondered, better compression?. We're already working on that. And parallel encoding/decoding, too! Just like this update, we want to make sure we do it right.

                    We expect the next PNG update (Fourth Edition) to be short. It will improve HDR & Standard Dynamic Range (SDR) interoperability. While we work on that, we'll be researching compression updates for PNG Fifth Edition.

                    One thing I'd like to see from image formats and libraries is better support for very high resolution images. Like, images where you're zooming into and out of a very large, high-resolution image and probably only looking at a small part of the image at any given point.

                    I was playing around with some high resolution images a bit back, and I was quite surprised to find how poor the situation is. Try viewing a very high resolution PNG in your favorite image-viewing program, and it'll probably choke.

                    • At least on Linux, it looks like the standard native image viewers don't do a great job here, and as best I can tell, the norm is to use web-based viewers. These deal with poor image format support support for high resolutions by generating versions of the image at multiple pre-scaled levels and then slicing the image into tiles, saving each tile as a separate image, so that a web browser just pulls down a handful of appropriate tiles from a web server. Viewers and library APIs need to be able to work with the image without having to decode the whole image.

                      gliv used to do very smooth GPU-accelerated panning and zooming --- I'd like to be able to do the same for very high-resolution images, decoding and loading visible data into video memory as required.

                    • The only image format I could find that seemed to do reasonably well was pyramidal TIFF.

                    I would guess that better parallel encoding and decoding support is likely associated with solving this, since limiting the portion of the image that one needs to decode is probably necessary both for parallel decoding and for efficient high-resolution processing.

                    D This user is from outside of this forum
                    D This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #20

                    There is a reason why TIFF is one of the most popular formats for raster geographic datasets 🙂

                    M 1 Reply Last reply
                    4
                    • spartanatreyu@programming.devS [email protected]

                      The future is webp JPEG XL...

                      And telling software patents to burn in hell.

                      M This user is from outside of this forum
                      M This user is from outside of this forum
                      [email protected]
                      wrote last edited by [email protected]
                      #21

                      Never saw even one piece of your "future" in the wild...

                      B 1 Reply Last reply
                      2
                      • D [email protected]

                        There is a reason why TIFF is one of the most popular formats for raster geographic datasets 🙂

                        M This user is from outside of this forum
                        M This user is from outside of this forum
                        [email protected]
                        wrote last edited by [email protected]
                        #22

                        _

                        1 Reply Last reply
                        1
                        • tal@lemmy.todayT [email protected]

                          What's next?

                          I know you all immediately wondered, better compression?. We're already working on that. And parallel encoding/decoding, too! Just like this update, we want to make sure we do it right.

                          We expect the next PNG update (Fourth Edition) to be short. It will improve HDR & Standard Dynamic Range (SDR) interoperability. While we work on that, we'll be researching compression updates for PNG Fifth Edition.

                          One thing I'd like to see from image formats and libraries is better support for very high resolution images. Like, images where you're zooming into and out of a very large, high-resolution image and probably only looking at a small part of the image at any given point.

                          I was playing around with some high resolution images a bit back, and I was quite surprised to find how poor the situation is. Try viewing a very high resolution PNG in your favorite image-viewing program, and it'll probably choke.

                          • At least on Linux, it looks like the standard native image viewers don't do a great job here, and as best I can tell, the norm is to use web-based viewers. These deal with poor image format support support for high resolutions by generating versions of the image at multiple pre-scaled levels and then slicing the image into tiles, saving each tile as a separate image, so that a web browser just pulls down a handful of appropriate tiles from a web server. Viewers and library APIs need to be able to work with the image without having to decode the whole image.

                            gliv used to do very smooth GPU-accelerated panning and zooming --- I'd like to be able to do the same for very high-resolution images, decoding and loading visible data into video memory as required.

                          • The only image format I could find that seemed to do reasonably well was pyramidal TIFF.

                          I would guess that better parallel encoding and decoding support is likely associated with solving this, since limiting the portion of the image that one needs to decode is probably necessary both for parallel decoding and for efficient high-resolution processing.

                          M This user is from outside of this forum
                          M This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #23

                          Now we need a image fornat for very high resolutions that does slicing already by itself. Would enable easy parallelization too.

                          D 1 Reply Last reply
                          1
                          • tal@lemmy.todayT [email protected]

                            WebP had been kind of moving in on its turf, based on what I've been seeing websites using.

                            sentient_loom@sh.itjust.worksS This user is from outside of this forum
                            sentient_loom@sh.itjust.worksS This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #24

                            I've never heard of webP. Looked it up. Not impressed. Sticking with png.

                            sorse@discuss.tchncs.deS 1 Reply Last reply
                            1
                            • M [email protected]

                              Now we need a image fornat for very high resolutions that does slicing already by itself. Would enable easy parallelization too.

                              D This user is from outside of this forum
                              D This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #25

                              Again, that would be TIFF. TIFF images can be encoded either with each line compressed separately or with rectangular tiles compressed separately, and separately compressed blocks can be read and decompressed in parallel. I have some >100GiB TIFFs containing elevation maps for entire countries, and my very old laptop can happily zoom and pan around in them with virtually no delay.

                              1 Reply Last reply
                              4
                              • jwr1@kbin.earthJ [email protected]

                                After 20 years, PNG is back with renewed vigor! A new PNG spec was just released.

                                W This user is from outside of this forum
                                W This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #26

                                HDR PNG is huge

                                1 Reply Last reply
                                5
                                • sentient_loom@sh.itjust.worksS [email protected]

                                  I've never heard of webP. Looked it up. Not impressed. Sticking with png.

                                  sorse@discuss.tchncs.deS This user is from outside of this forum
                                  sorse@discuss.tchncs.deS This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #27

                                  The main advantage of webp is that it has good lossy compression, which makes it great for websites that show tens or hundreds of images on a single page

                                  1 Reply Last reply
                                  5
                                  • captainastronaut@seattlelunarsociety.orgC [email protected]

                                    May webp die a horrible death in its wake!

                                    F This user is from outside of this forum
                                    F This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #28

                                    WebP was the first widely supported format to support lossy transparency. It's worth it for that alone.

                                    1 Reply Last reply
                                    10
                                    • vhstape@lemmy.sdf.orgV [email protected]

                                      Great news! PNG has always been my image format of choice due to its relatively good compression and support for transparency.

                                      A This user is from outside of this forum
                                      A This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #29

                                      Do you remember png? Well now it's back. In pog form!

                                      1 Reply Last reply
                                      4
                                      • M [email protected]

                                        Never saw even one piece of your "future" in the wild...

                                        B This user is from outside of this forum
                                        B This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by [email protected]
                                        #30

                                        That's because Google removed the support from chrome after only a few months, and Mozilla never added it to Firefox.
                                        And although there's apparently an extension for both, (lossy) image formats need out of the box browser support to have any chance for any kind adoption.

                                        1 Reply Last reply
                                        3
                                        • F [email protected]

                                          As cool and impressive as Qoi is, as long as I can't just send it to someone it's sadly not a replacement for PNG.

                                          M This user is from outside of this forum
                                          M This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #31

                                          Yeah, adoption's not a feature you can design.

                                          The general idea may show up in any extensible format. Like a PNG encoder that only does Sub filter can encounter each pixel once.

                                          ... wait, PNG filtering is byte-level? It doesn't change with bit depth? Christ.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups