raen79/elm-imgix/1.0.0

ImgIX

Create and apply options to images hosted on ImgIX.

ImgIX

type ImgIX

The type of an ImgIX image

Creation

fromUrl : Url -> ImgIX

Create a new ImgIX from an Url

fromString : String -> Maybe ImgIX

Create a new ImgIX from a string representing an Url

Pixel Density

Control the pixel density of an ImgIX Check the ImgIX.PixelDensity module for all the available options.

Apply a list of PixelDensity operations

Format

format : List (Format -> Format) -> ImgIX -> ImgIX

Control the format of an ImgIX Check the ImgIX.Format module for all the available options.

Size

Control the size of an ImgIX Check the ImgIX.Size module for all the available options.

sizes : List Size -> ImgIX -> ImgIX

Apply a list of Sizes

Rotation

Adjust an ImgIX using Rotations Check the ImgIX.Rotation module for all the rotations available.

Apply a list of Rotations

Adjustment

Adjust an ImgIX using Adjustments Check the ImgIX.Adjustments module for all the adjustments available.

Apply a list of Adjustments

Automatic Optimization

Apply an automatic optimization Check the ImgIX.Automatic module for all the automatic optimizations available.

Apply a list of automatic optimizations

Stylize

Adjust an ImgIX using Stylizations Check the ImgIX.Stylize module for all the stylizations available.

Apply a list of Stylizations

Text

Adjust an ImgIX using Text Check the ImgIX.Text module for all the text options available.

Apply a list of Text

Render

toUrl : ImgIX -> Url

Create a valid ImgIX url from an ImgIX type

toHtml : ImgIX -> Html msg

Render ImgIx as a Html img node

toHtmlWithAttributes : List (Attribute msg) -> ImgIX -> Html msg

Render ImgIx as a Html img node with a given list of Html.Attributes

Color

rgba : Float -> Float -> Float -> Float -> Color

Create a rgba color