raen79 / elm-imgix / 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

pixelDensity : PixelDensity -> ImgIX -> ImgIX

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

pixelDensities : List PixelDensity -> ImgIX -> ImgIX

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

size : Size -> ImgIX -> ImgIX

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

rotation : Rotation -> ImgIX -> ImgIX

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

rotations : List Rotation -> ImgIX -> ImgIX

Apply a list of Rotations

Adjustment

adjust : Adjustment -> ImgIX -> ImgIX

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

adjustments : List Adjustment -> ImgIX -> ImgIX

Apply a list of Adjustments

Automatic Optimization

automatic : Automatic -> ImgIX -> ImgIX

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

automatics : List Automatic -> ImgIX -> ImgIX

Apply a list of automatic optimizations

Stylize

stylize : Stylize -> ImgIX -> ImgIX

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

stylizations : List Stylize -> ImgIX -> ImgIX

Apply a list of Stylizations

Text

text : Text -> ImgIX -> ImgIX

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

textOptions : List Text -> ImgIX -> ImgIX

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 (Html.Attribute msg) -> ImgIX -> Html msg

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

Color

rgba : Basics.Float -> Basics.Float -> Basics.Float -> Basics.Float -> Color

Create a rgba color