streaming-png-0.1.0.0: Perfectly streaming PNG image decoding

Copyright(c) Bradley Hardy 2016
LicenseLGPL3
Maintainerbradleyhardy@live.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Codec.Picture.Png.Streaming.Juicy

Description

Provides a way to produce JuicyPixels images from PNG data decoded with streaming-png.

For example, to load a JuicyPixels image from a PNG file:

decodePNGFile "my-png.png" >>= imageFromStream :: (MonadIO m, MonadThrow m) => m (Of DynamicImage ())

Synopsis

Documentation

imageFromStream :: MonadThrow m => DecodedPNG m r -> m (Of DynamicImage r) Source

Pulls a PNG image stream into memory as a JuicyPixels DynamicImage. Currently supports every legal non-indexed colour type.