JuicyPixels-3.1.3.1: Picture loading/serialization (in png, jpeg, bitmap, gif, tiff and radiance)

Safe HaskellNone

Codec.Picture.Saving

Description

Helper functions to save dynamic images to other file format with automatic color space/sample format conversion done automatically.

Synopsis

Documentation

imageToJpg :: Int -> DynamicImage -> ByteStringSource

This function will try to do anything to encode an image as JPEG, make all color conversion and such. Equivalent of decodeImage for jpeg encoding

imageToPng :: DynamicImage -> ByteStringSource

This function will try to do anything to encode an image as PNG, make all color conversion and such. Equivalent of decodeImage for PNG encoding

imageToGif :: DynamicImage -> Either String ByteStringSource

This function will try to do anything to encode an image as a gif, make all color conversion and quantization. Equivalent of decodeImage for gif encoding

imageToBitmap :: DynamicImage -> ByteStringSource

This function will try to do anything to encode an image as bitmap, make all color conversion and such. Equivalent of decodeImage for Bitmap encoding

imageToTiff :: DynamicImage -> ByteStringSource

This function will try to do anything to encode an image as a Tiff, make all color conversion and such. Equivalent of decodeImage for Tiff encoding

imageToRadiance :: DynamicImage -> ByteStringSource

This function will try to do anything to encode an image as RADIANCE, make all color conversion and such. Equivalent of decodeImage for radiance encoding