Encode an image into a png if possible.
Methods
encodePng :: Image a -> ByteStringTransform an image into a png encoded bytestring, ready to be written as a file.
encodePngWithMetadata :: Metadatas -> Image a -> ByteStringEncode a png using some metadatas. The following metadata keys will be stored in a
tEXtfield :Unknown using the key present in the constructor.
the followings metadata will be stored in the
gAMAchunk.The followings metadata will be stored in a
pHYschunk
Instances8PngSavable, …
PngSavable Pixel16Defined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.ExportPngSavable Pixel8Defined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.ExportPngSavable PixelRGB16Defined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.ExportPngSavable PixelRGB8Defined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.ExportPngSavable PixelRGBA16Defined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.ExportPngSavable PixelRGBA8Defined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.ExportPngSavable PixelYA16Defined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.ExportPngSavable PixelYA8Defined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.Export