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. 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 with specific rotation requirements.
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 downloads the rotated image and outputs it as binary data under the user-specified field name (e.g.,
data). The output includes both the JSON metadata and the binary image data. - The binary data can be used directly in subsequent nodes that accept binary inputs, such as file upload or storage nodes.
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. - If downloading the image, the node fetches the image from the returned CDN URL.
- No additional environment variables are required beyond the API credential.
Troubleshooting
- Common issues:
- Invalid or inaccessible Image URL: Ensure the URL is publicly accessible and points to a valid image file.
- Incorrect rotation angle: The angle should be a valid number; non-numeric or missing values may cause errors.
- Background color format: Must be a valid hex color string (e.g.,
#FFFFFF). - Download failures: If downloading the rotated image fails, check network connectivity and URL accessibility.
- Error messages:
- API request failures often indicate invalid parameters or authentication issues. Verify the API key and input parameters.
- If the node throws errors about protected URLs, the image source might restrict access; use publicly accessible URLs instead.
- To resolve errors, verify all input properties, ensure the API key is valid, and confirm the image URL is reachable.
Links and References
- Mallabe Images API Documentation (hypothetical link)
- n8n documentation on working with binary data
- General image rotation concepts: Image rotation on Wikipedia