• BeefPiano@lemmy.world
    link
    fedilink
    English
    arrow-up
    57
    ·
    10 months ago

    GIFs have transparency, but not alpha blending so it would have jagged edges. When PNGs were first supported by IE, you had to do some crazy ActiveX scripting calls to make it work.

    At the time, Microsoft had shut down the IE team since they had beaten Netscape in the browser wars. If it hadn’t been for Firefox, we would be stuck with that crappy PNG implementation!

    • MonkderZweite@feddit.ch
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      10 months ago

      My favourite in simplicity is still xpm (X PixMap) format. You can draw that in your text editor. XFCE’s window manager still uses it for borders.

  • ShortFuse@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    10 months ago

    PNG was built to replace GIF and TIFF.

    The Portable Network Graphics (PNG) format was designed to replace the older and simpler GIF format and, to some extent, the much more complex TIFF format.

    And it stands to this day, with the exception of animation:

    One GIF feature that PNG does not try to reproduce is multiple-image support, especially animations; PNG was and is intended to be a single-image format only.

    Though APNG came later, and we even have MP4.

    http://www.libpng.org/pub/png/pngintro.html

    Bonus:

    No detail was too small for consideration in the authors’ quest for a near-perfect image format; yea, verily, even the acronym and pronunciation were major topics of discussion. The reason, of course, is the GIF format; some pronounce it with a soft G like giraffe, some with a hard G like gift, and no one really knows what they’re talking about. (For the record, the soft G is correct; it is how the author of the format pronounces it.)

    “PNG” is always spelled* “PNG” (or “Portable Network Graphics”) and always pronounced “ping” in English, not “pinj” or “pee en gee” or any other multi-syllabic disaster. (For non-English speakers, the three-letter pronunciation is fine, however.)

    • Vent@lemm.ee
      link
      fedilink
      arrow-up
      22
      ·
      10 months ago

      Never heard anyone pronounce it ping, lol! P-N-G is a better pronunciation anyway. Less ambiguous, there’s already something called ping that is super common in computing.

    • Obi@sopuli.xyz
      link
      fedilink
      arrow-up
      22
      ·
      10 months ago

      If they wanted me to pronounce it ping they should’ve spelled it ping.

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      4
      ·
      10 months ago

      Odd they bring up TIFF. That one is more like a container format that can hold many different types of images.

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

      with the exception of animation.

      Funny you should mention that… From the GIF89 specification, Appendix D:

      Animation - The Graphics Interchange Format is not intended as a platform for animation, even though it can be done in a limited way.

  • Heavybell@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    10 months ago

    Anyone else remember when people hated PNG like they hate WEBP today, for the same reason; namely lack of wide-spread software support?

      • Vent@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        10 months ago

        JpegXL is definitely better overall, especially for its texture-preserving features, but it’s even less supported than webp :(

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      4
      ·
      10 months ago

      PNG mainly lacked support from Microsoft (Internet Explorer) and Adobe (Photoshop). IE didn’t handle PNG transparency, while Photoshop had a shitty PNG implementation that tended to produce files larger than an equivalent GIF. Held back widespread adoption for almost a decade.