hallelujahdrive/elm-croppie/1.0.3

Croppie.BindOptions

Options of binding an image.

See Croppie.bind for usage.

Bind Options

url : String -> BindOption

Url to image

points : List Int -> BindOption

Array of points that translate into [topLeftX, topLeftY, bottomRightX, bottomRightY]

zoom : Float -> BindOption

Apply zoom after image has been bound

orientation : Int -> BindOption

Custom orientation, applied after exif orientation (if enabled). Only works with enableOrientation option enabled (see Croppie.Options.enableOrientation).

Valid options are:

1 unchanged

2 flipped horizontally

3 rotated 180 degrees

4 flipped vertically

5 flipped hozirontally. then rotated left by 90 degrees

6 rotated clockwise by 90 degrees

7 flipped horizontally, then rotated right by 90 degrees

8 rotated counter-clockwise by 90 degrees