Marketing Architects icon

Marketing Architects

Consume Marketing Architects API

Image → Resize Image

AI-generated

Summary

Resize an image using the Marketing Architects API.

Inputs

  • url (required) — The URL of the image to resize.
  • width (required) — Width of the resized image in pixels (default 1280).
  • height (required) — Height of the resized image in pixels (default 720).
  • fit (required) — How the image should be resized to fit the dimensions. Options: contain, cover, fill, inside, outside (default cover).
  • position (required) — Position of the image when using cover or contain fit modes. Options: top, top-left, top-right, left, center, right, bottom, bottom-left, bottom-right (default center).
  • background (required) — Background color for areas not covered by the image (hex color code, default #000000).
  • outputFormat (required) — Format of the output image. Options: jpg, png, webp, avif (default jpg).
  • quality (required) — Quality of the output image from 1 to 100 (default 80).
  • requestOptions — Node-level request settings: batching, proxy, timeout, and SSL verification options.

Output shape

The raw response from the POST /image/resize endpoint, typically containing the resized image data (e.g., binary or URL) and any metadata returned by the API.

Error responses are transformed into n8n NodeApiError via the shared sendErrorPostReceive handler.

Examples

Example 1: Resize a remote image to 800x600 pixels, using 'contain' fit, centered on a white background, output as PNG at 90% quality.

Set url to the image source, width 800, height 600, fit contain, position center, background #FFFFFF, outputFormat png, quality 90.

Links

Discussion