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. This operation is useful in scenarios where you need to adjust image sizes dynamically within an automation workflow, for example, preparing images for web publishing, thumbnails, or social media posts.

Practical examples:

  • Automatically resizing product images from an e-commerce site before uploading them to a CMS.
  • Scaling user-uploaded profile pictures to fit specific dimension requirements.
  • Resizing marketing images on the fly to optimize load times without manual editing.

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 The name of the output field to put the binary file data in (only relevant if downloading the image).
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. If the "Download Image?" property is set to true, the node also outputs the binary data of the resized image under the specified output field name.

  • json: Contains metadata and URLs related to the resized image.
  • binary (optional): Contains the actual image file data when downloading is enabled.

This allows subsequent nodes in the workflow to either use the image URL or directly process the image binary data.

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 operations.
  • 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 operation to fail because the service cannot access the image.
    • Using unsupported image formats or corrupted images might result in errors or no output.
    • Incorrect width/height values or incompatible resize strategy combinations could lead to unexpected results.
  • Error messages:

    • Errors related to inaccessible URLs usually indicate permission or network issues; ensure the image URL is publicly accessible.
    • Validation errors for missing or invalid parameters will prompt checking the input properties.
    • API authentication errors suggest verifying the provided API key credential.

To resolve these, verify the image URL accessibility, confirm correct input parameters, and ensure valid API credentials are configured.

Links and References

Discussion