Actions9
Overview
The "Mallabe Images" node provides a suite of image processing operations accessible via automation workflows. Specifically, the Compress Image operation allows users to reduce the file size of an image by lowering its quality percentage while optionally customizing the output filename and extension. This is useful for optimizing images for web use, reducing bandwidth consumption, or preparing images for faster loading in applications.
Common scenarios include:
- Automatically compressing product images before uploading them to an e-commerce platform.
- Reducing image sizes in bulk for email marketing campaigns.
- Optimizing user-uploaded images in content management systems.
Properties
| Name | Meaning |
|---|---|
| Image URL | Public URL of the image file to compress. |
| Quality | Decrease the quality of the picture, specified as a percentage from 1 to 100 (e.g., 80 means 80% quality). |
| Specify File Name | Custom file name for the compressed image (optional). |
| Specify File Extension | Custom file extension for the compressed image (optional). |
| Download Image? | Boolean flag indicating whether to download the compressed image binary data or just return a link to it. |
| Put Output File In Field | When downloading the image, this specifies the name of the output field where the binary file data will be stored. |
| Webhook URL (Advanced) | Optional URL to send a webhook with the data of the operation (for advanced integrations). |
Output
- If Download Image? is set to
false, the node outputs a JSON object containing metadata about the compressed image, including a URL to access the compressed image. - If Download Image? is set to
true, the node outputs the same JSON metadata plus the binary data of the compressed image file under the specified output field name. This binary data can then be used in subsequent workflow steps that require the actual image file.
The JSON output typically includes at least a url property pointing to the compressed image location.
Dependencies
- Requires an active API key credential for the Mallabe Images service to authenticate requests.
- The node makes HTTP POST requests to the Mallabe Images API endpoints to perform compression.
- For downloading binary data, the node fetches the image from the returned CDN URL.
- No additional environment variables are explicitly required beyond the API credential.
Troubleshooting
- Invalid Image URL: If the provided URL is not publicly accessible or does not point to a valid image format (PNG, JPG/JPEG, etc.), the compression will fail. Ensure URLs are direct links to image files and publicly reachable.
- Protected URLs: Some URLs from certain integrations may be protected or require authentication, causing failures. Use publicly accessible URLs or host images on accessible storage.
- Quality Parameter Out of Range: Providing a quality value outside the 1-100 range may cause errors or unexpected results. Always specify a valid integer within this range.
- Download Failures: If downloading the compressed image fails, check network connectivity and ensure the returned URL is valid and accessible.
- API Authentication Errors: Missing or invalid API credentials will prevent the node from working. Verify the API key configuration in n8n credentials.
Links and References
- Mallabe Images API Documentation (hypothetical link based on context)
- Image Compression Best Practices
- n8n Documentation - Working with Binary Data