/resize-image

Overview

This endpoint allows users to resize an image by specifying the desired width and height. The service supports JPEG and PNG formats for input images and returns the URL of the resized image.

Endpoint Information

  • Method: POST
  • Endpoint URL: https://node.nodetrigger.com/api/resize-image
  • Content Type: application/json

Example Requests


POST https://node.nodetrigger.com/api/resize-image
Content-Type: application/json

{
    "imageUrl": "https://example.com/image.jpg",
    "width": 300,
    "height": 200
}

Notes

  • The imageUrl parameter is required and must point to an image in either JPG or PNG format. If not provided, the request will fail.
  • Supported image formats are JPG, JPEG, and PNG.
  • The endpoint handles images differently based on their size. Images larger than 15MB will be processed using streaming to save memory resources.
  • The service maintains the original format of the image. PNG images will preserve transparency.
  • The resized image will be saved in the server and a URL to the resized image will be returned in the response.
  • For large images, ensure stable internet connections as processing involves streaming data.

“`