hallelujahdrive / elm-croppie / Croppie.ResultOptions

Options of Result

See Croppie.result for usage.

Type

type_ : Type -> Croppie.ResultOption

The type of result to return defaults to Canvas


type Type
    = Base64
    | Canvas
    | Html

Type of result type

Size

size : Size -> Croppie.ResultOption

The size of the cropped image defaults to Viewport


type Size
    = Viewport
    | Original
    | Custom ({ width : Maybe Basics.Int, height : Maybe Basics.Int })

Size type

Format

format : Format -> Croppie.ResultOption

Indicating the image format.

If you do not specify a format, the default is Png


type Format
    = Jpeg
    | Png
    | Webp

Type of result format

Quarity

quality : Basics.Float -> Croppie.ResultOption

Number between 0 and 1 indicating image quarity.

Circle

circle : Basics.Bool -> Croppie.ResultOption

Force the result to be cropped into a circle.