Rotate
AI-generatedSummary
Rotates an image by a specified angle using the ImageMagick API, optionally converting it to a different format.
Inputs
- inputSource (required) — Source of the file to process: 'binaryData' uses the binary property from the previous node, or 'url' downloads the file from a provided URL.
- binaryPropertyName (required) — Name of the binary property containing the input image (visible only when inputSource is binaryData).
- fileUrl (required) — URL of the image file to download and process (visible only when inputSource is url).
- outputBinaryPropertyName — Name of the binary property to store the result in the output item.
- angle (required) — Rotation angle in degrees. Positive values rotate clockwise.
- outputFormat — Target output format (jpg, png, webp, gif, bmp, tiff, pdf). If empty, the original format is preserved.
Output shape
A list of items, each containing a binary property with the rotated image file.
The original JSON data is passed through unchanged. The filename follows the pattern 'rotate_[timestamp].[format]'.
Examples
Example 1: Rotate a binary image 90 degrees clockwise and save it to a new binary property.
Set inputSource to binaryData, binaryPropertyName to 'data', angle to 90, and outputBinaryPropertyName to 'rotated'.
Example 2: Rotate an image from a URL by 180 degrees and convert it to PNG.
Set inputSource to url, fileUrl to the image URL, angle to 180, outputFormat to png, and outputBinaryPropertyName to 'data'.