justgook/elm-image/4.0.0

NOTE: the latest version is 5.0.0

Image.Advanced

map : (Int -> Int) -> Image -> Image

Apply a function on every pixel in an image.

info : Image -> Info

Get image info

eval : Image -> Image

When decoding images they are decoded in "lazy way" (real decoding is postponed until data is needed) this function do decode, useful if you need to encode multiple images from same source

toPng32 : Image -> Bytes

Encode image into True color with alpha PNG image

toBmp24 : Image -> Bytes

Encode image into BMP24

toBmp32 : Image -> Bytes

Encode image into BMP32

Note: Using BMP 32bit is discouraged due to lack of proper support across browsers