A value between 1 and 100 to specify the quality of the encoding.
This value is only used to control JPEG quality.
correct_orientation
A value from ORIENTATION_CORRECTION_TYPE to indicate
if orientation correction should be performed during the transformation.
rpc
An optional UserRPC object.
transparent_substitution_rgb
When transparent pixels are not supported in
the destination image format, then transparent pixels will be substituted
for the specified color, which must be in 32-bit RGB format.
Returns
A UserRPC object; call get_result() to complete the RPC and obtain the
crop result.
Raises
TypeError
When degrees is not of integer or long type.
BadRequestError
When the specified degrees value is invalid.
Error
All other errors. See Image.ExecuteTransforms for more details.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["The `rotate_async` function asynchronously rotates an image by a specified number of degrees clockwise, returning a `UserRPC` object."],["The function accepts parameters such as `image_data`, `degrees`, `output_encoding`, `quality`, `correct_orientation`, `rpc`, and `transparent_substitution_rgb` to customize the rotation process."],["It uses `ROTATE_DEGREE_VALUES` for the `degrees` value and `OUTPUT_ENCODING_TYPES` for the `output_encoding`, while `correct_orientation` uses `ORIENTATION_CORRECTION_TYPE` to determine if the orientation correction should be made."],["The `quality` parameter, which ranges from 1 to 100, will only be used for JPEG encoding, while the `transparent_substitution_rgb` parameter will be used when there is a format issue."],["The function may raise a `TypeError` if `degrees` is not an integer, a `BadRequestError` for invalid degree values, or a generic `Error` for other issues."]]],[]]