HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleJuicyPixels-3.3.8Haskell2010

Codec.Picture.Gif

Module implementing GIF decoding.

  • 5 types
  • 14 values

Reading

5 declarations

Writing

14 declarations
typetype GifDelay = Int
#

Delay to wait before showing the next Gif image. The delay is expressed in 100th of seconds.

datadata GifLooping
#

Help to control the behaviour of GIF animation looping.

Constructors

Encode a complex gif to a bytestring.

  • There must be at least one image.

  • The screen and every frame dimensions must be between 1 and 65535.

  • Every frame image must fit within the screen bounds.

  • Every palette must have between one and 256 colors.

  • There must be a global palette or every image must have a local palette.

  • The background color index must be present in the global palette.

  • Every frame's transparent color index, if set, must be present in the palette used by that frame.

  • Every color index used in an image must be present in the palette used by that frame.