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.Png

Module used for loading & writing 'Portable Network Graphics' (PNG) files.

A high level API is provided. It loads and saves images for you while hiding all the details about PNG chunks.

Basic functions for PNG handling are decodePng, encodePng and encodePalettedPng. Convenience functions are provided for direct file handling and using DynamicImages.

The loader has been validated against the pngsuite (http:/www.libpng.orgpubpngpngsuite.html)

  • 2 classes
  • 6 values

High level functions

8 declarations
classclass PngSavable a where
#

Encode an image into a png if possible.

Methods

Instances8PngSavable, …
classclass PngPaletteSaveable a where
#

Encode a paletted image into a png if possible.

Methods

Instances2PngPaletteSaveable