WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation 'Process Image' under the 'Miscellaneous' resource allows users to process images by applying various transformations such as format conversion, resizing, and quality adjustment. It accepts an input image as a base64 payload, HTTPS URL, or local path and processes it according to specified parameters. This is useful for workflows that require image manipulation, such as preparing images for web use, generating thumbnails, or converting image formats.

Use Case Examples

  1. Convert an image from JPG to PNG format with specific width and height.
  2. Resize an image to fit within given dimensions while maintaining aspect ratio.
  3. Adjust image quality and convert to a different format like WEBP or TIFF.

Properties

Name Meaning
File The input image file to process, provided as a base64 payload, HTTPS URL, or local path.
Additional Fields A collection of optional parameters to customize the image processing, including format conversion, resizing dimensions, fit mode, and quality settings.

Output

JSON

  • json - The processed image data or metadata returned from the API after processing the image.

Dependencies

  • Requires an API key credential for the WARest WhatsApp REST API to authenticate requests.

Troubleshooting

  • Ensure the input 'File' parameter is correctly formatted as base64, a valid HTTPS URL, or a local file path; invalid inputs will cause errors.
  • If resizing parameters are set incorrectly (e.g., zero or negative values), the image processing may fail or produce unexpected results.
  • Unsupported image formats or conversion targets may result in errors; verify supported formats (PNG, JPG, JPEG, WEBP, TIFF, AVIF).
  • Network issues or invalid API credentials will prevent successful API calls; verify connectivity and credentials.

Links

Discussion