Std.Image
Types
type Format = Jpeg Int | Png | Gif | WebpLossless | Preserve
type alias Rgb
Values
crop : Format -> Int -> Int -> Int -> Int -> String -> Task Error String
Cut out the area that starts `x` pixels from the left and `y` pixels from
dimensions : String -> Task Error { width : Int, height : Int }
The pixel dimensions of an image, read from its header (cheap, no full
frames : String -> Task Error Int
The number of frames: the frame count of a GIF, 1 for any other image. It
reduceFrames : Int -> String -> Task Error String
Keep 1 frame in `n` of an animated GIF (frames 1, 1 + n, 1 + 2n, ...) and
resizeToFit : Format -> Int -> Int -> String -> Task Error String
Scale an image to fit within `maxWidth` x `maxHeight`, preserving the aspect
thumbnail : Format -> Int -> String -> Task Error String
Scale an image to fit within `maxDim` x `maxDim` — a square bound for a
toAlpha : Rgb -> String -> Task Error String
Make one background colour transparent ("colour to alpha"). Each pixel
trim : Format -> Int -> Int -> String -> Task Error String
Cut away the edge rows and columns that are only margin, and keep `padding`
whiteToAlpha : String -> Task Error String
`toAlpha` with white as the background: makes a white background