• Luna@lemmy.catgirl.biz
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 day ago

    Not sure if GIF has a “default” palette but it does have a global palette per file and each frame can have its own “local” palette. That way each frame can have its own personalized 256 colors and more accurately represent the source material. It bloats the filesize though as one would expect when adding up 256 x 3 (RGB) x NumberOfFrames bytes instead of just 256 x 3 bytes (just for palette data). Filesize can further bloat by using dithering which is effectively adding randomness to each frame and compression generally doesn’t do well the more random the data is. End result is a great looking GIF but at this point, why aren’t you using a proper video codec? :D

    • piccolo@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      19 hours ago

      Video codecc didnt really exist when gifs were introduced, and mpeg1 required decoder hardware at the time. Wasnt really until mp4 became standard to retire gifs for good. (Lets just ignore the whole internet Flash phase)

    • kubica@fedia.io
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      Many media hosts used to only accepted gifs but not videos and some people liked the challenge.