Actions9
Overview
The "Mallabe Images" node provides a suite of image processing operations accessible via an API. Specifically, the Compress Image operation allows users to reduce the file size of images by lowering their quality percentage-wise. This is useful for optimizing images for web use, reducing bandwidth consumption, or preparing images for faster loading times in applications.
Typical scenarios include:
- Compressing product images before uploading them to an e-commerce platform.
- Reducing image sizes in marketing emails to improve deliverability and load speed.
- Automatically compressing user-uploaded images in workflows to save storage space.
Users provide a public URL of the image to compress, specify the desired quality level, and optionally customize the output file name and extension. The node can either return a downloadable binary file or just a link to the compressed image.
Properties
| Name | Meaning |
|---|---|
| Image URL | Public URL of the image file to compress |
| Quality | Decrease the quality of the picture, in percentage (1-100) |
| Specify File Name | Custom file name for the compressed image |
| Specify File Extension | Custom file extension for the compressed image |
| Download Image? | Whether to download the compressed image as binary data or return a link to it |
| Put Output File In Field | When downloading, 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 |
Output
- If Download Image? is set to
false, the node outputs JSON containing metadata about the compressed image, including a URL to access the compressed image. - If Download Image? is set to
true, the node outputs JSON along with a binary data field containing the actual compressed image file. The binary data is placed under the specified output field name.
The JSON output structure includes at least a url property pointing to the compressed image location.
Dependencies
- Requires an active connection to the Mallabe Images API service.
- Needs an API key credential configured in n8n for authentication with the Mallabe Images API.
- The input image must be accessible via a public URL; protected or private URLs may not work.
- Optional webhook URL can be provided to receive asynchronous notifications from the API.
Troubleshooting
- Invalid Image URL: If the provided URL is not publicly accessible or does not point to a valid image format (e.g., PNG, JPG), the compression will fail.
- Protected URLs: Some integrations provide URLs that are protected or require authentication; these cannot be processed.
- Quality Value Out of Range: Ensure the quality percentage is between 1 and 100; values outside this range may cause errors.
- Download Failures: If downloading the compressed image fails, verify network connectivity and that the output field name is correctly specified.
- API Errors: Authentication failures or quota limits on the API key will result in errors; check API credentials and usage limits.
Links and References
- Mallabe Images API Documentation (example placeholder, replace with actual if available)
- Image Compression Best Practices
- n8n Documentation - Working with Binary Data