HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

ModuleJuicyPixels-3.3.9Haskell2010

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)

Contents
  1. High level functions
Synopsis

High level functions

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