hallelujahdrive / elm-croppie / Croppie.BindOptions

Options of binding an image.

See Croppie.bind for usage.

Bind Options

url : String -> Croppie.BindOption

Url to image

points : List Basics.Int -> Croppie.BindOption

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

zoom : Basics.Float -> Croppie.BindOption

Apply zoom after image has been bound

orientation : Basics.Int -> Croppie.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