Actions9
Overview
The "Rotate Image" operation of the Mallabe Images node allows users to rotate an image by a specified angle. This is useful in scenarios where images need orientation correction or creative rotation effects before further processing or integration with other systems. For example, you might use this node to rotate product photos uploaded by users to ensure consistent display orientation or to prepare images for social media posts.
Properties
| Name | Meaning |
|---|---|
| Image URL | Public URL of the image file to rotate |
| Rotation Angle | Defines the angle (in degrees) by which the image will be rotated |
| Image Background Color | Background color applied to areas revealed after rotation (default is black #000000) |
| Download Image? | Whether to download the rotated image as binary data or just return a link to it |
| Put Output File In Field | The name of the output field to put the binary file data in (used only if downloading) |
| Webhook URL (Advanced) | Optional URL to send a webhook with the data of the operation |
Output
- If Download Image? is set to false, the node outputs JSON containing at least a
urlfield pointing to the rotated image hosted on the service. - If Download Image? is true, the node outputs the rotated image as binary data under the user-specified field name (e.g.,
data). The output includes:json: metadata and response details about the rotated image.binary: the actual image file data ready for downstream nodes that accept binary input.
Dependencies
- Requires an active API key credential for the Mallabe Images service.
- The node makes HTTP POST requests to the Mallabe Images API endpoint
/v1/images/rotate. - Optionally supports sending a webhook callback URL to receive asynchronous notifications or data.
Troubleshooting
- Invalid Image URL: If the provided URL is not publicly accessible or not a valid image format, the API may fail to process the request.
- Invalid Rotation Angle: Ensure the angle is a valid number; otherwise, the API might reject the request.
- Download Failures: When downloading the rotated image binary, network issues or invalid URLs can cause errors.
- Webhook URL Issues: If using the webhook URL, ensure it is reachable and correctly configured to handle incoming POST requests.
- API Authentication Errors: Verify that the API key credential is correctly set up and has permissions for image manipulation.
Links and References
- Mallabe Images API Documentation (hypothetical link)
- n8n documentation on working with binary data
- General image rotation concepts: Image rotation - Wikipedia