JuicyPixels-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

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

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