Mallabe Images icon

Mallabe Images

Mallabe Images is an automation toolchain that allows you to process images, resize, crop and apply other manipulations on images on the fly.

Overview

The "Resize Image" operation of the Mallabe Images node allows users to resize or scale images by providing a public URL of the image. It supports different resizing strategies such as maintaining proportions, resizing to exact dimensions, or scaling by percentage. Users can also remove Exif metadata from the image, specify custom file names and extensions for the output, and choose whether to download the resized image directly or receive a link to it. Additionally, an optional webhook URL can be provided to send operation data asynchronously.

This node is beneficial in automation workflows where image size adjustments are needed before further processing or integration, such as preparing images for web publishing, thumbnails generation, or optimizing images for email campaigns.

Example use cases:

  • Automatically resizing product images to standard dimensions before uploading to an e-commerce platform.
  • Scaling user-uploaded photos by a percentage to reduce file size while maintaining aspect ratio.
  • Removing Exif data from images for privacy reasons during batch processing.

Properties

Name Meaning
Image URL Public URL of the image file to resize.
Resize Strategy Strategy to resize the image. Options:
• Resize (keep proportions)
• Resize Exact (use exact width and height)
• Scale (scale width and height as percentage)
Width Width of the image. If Resize Strategy is Scale, this is treated as a percentage.
Height Height of the image. If Resize Strategy is Scale, this is treated as a percentage.
Remove Exif? Whether to remove Exif metadata from the image.
Specify File Name Custom file name for the resized image.
Specify File Extension Custom file extension for the resized image.
Download Image? Whether to download the resized image binary data or just return a link to it.
Put Output File In Field When downloading, the name of the output field to put the binary file data in.
Webhook URL (Advanced) Optional URL to send a webhook with the data of the operation.

Output

The node outputs JSON data containing details about the resized image, including a URL to the processed image.

  • If Download Image? is set to false, the output JSON contains the response data with the URL of the resized image.
  • If Download Image? is true, the node downloads the binary image data from the returned URL and outputs it in the specified binary field alongside the JSON metadata.

The binary output field contains the actual image file data ready for further use in the workflow.

Dependencies

  • Requires an 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 resizing.
  • For downloading images, the node fetches binary data from the CDN URL provided by the API response.
  • No additional environment variables are explicitly required beyond the API credential.

Troubleshooting

  • Common issues:

    • Providing a non-public or protected image URL may cause the API to fail since it cannot access the image.
    • Incorrect or missing width/height values depending on the chosen resize strategy can lead to unexpected results or errors.
    • Specifying invalid file extensions or unsupported formats might cause the output to be unusable.
    • Network issues or invalid API credentials will prevent successful API calls.
  • Error messages:

    • Errors related to inaccessible URLs usually indicate that the image URL is not publicly reachable.
    • Validation errors on parameters like width, height, or strategy suggest checking input values.
    • Authentication errors imply verifying the API key credential configuration.

To resolve these, ensure the image URLs are publicly accessible, input parameters match the expected types and constraints, and the API key is correctly configured.

Links and References

Discussion