hallelujahdrive/elm-croppie/1.0.2

NOTE: the latest version is 1.0.3

Croppie.ResultOptions

Options of Result

See Croppie.result for usage.

Type

type_ : Type -> ResultOption

The type of result to return defaults to Canvas

type Type
= Base64
| Canvas
| Html

Type of result type

Size

size : Size -> ResultOption

The size of the cropped image defaults to Viewport

type Size
= Viewport
| Original
| Custom
{ width : Maybe Int
, height : Maybe Int
}

Size type

Format

format : Format -> 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 : Float -> ResultOption

Number between 0 and 1 indicating image quarity.

Circle

circle : Bool -> ResultOption

Force the result to be cropped into a circle.