The rotation parameters allow you to change the orientation of your image, by either flipping along its axes or rotating around the center.
The type of a Rotation
rotate : Basics.Int -> Rotation
Rotate your image by given degrees
Combine both functions to flip along both axes.
flipVertical : Rotation
Flip image vertically
flipHorizontal : Rotation
Flip image horizontally
Changes the cardinal orientation of the image by overriding any Exif orientation metadata.
By default, ImgIX automatically uses Exchangeable image file format (Exif) metadata present in the master image to orient your photos correctly. If your image does not contain Exif orientation data, we assume a value of 0 (North) and do not rotate the image.
orientNorth : Rotation
Change the Exif orientation metadata to face North
orientEast : Rotation
Change the Exif orientation metadata to face East
orientSouth : Rotation
Change the Exif orientation metadata to face South
orientWest : Rotation
Change the Exif orientation metadata to face West
toQueryParameters : List Rotation -> List Url.Builder.QueryParameter
Takes a list of rotations and turns it in to a list of query parameters that ImgIX understands