0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Image → Resize Image

AI-generated

Overview

The node provides a utility to resize images by specifying a publicly accessible image URL and desired dimensions. It is useful in scenarios where you need to adjust image sizes for web optimization, thumbnails, or consistent display formats without manual editing. For example, resizing product images before uploading them to an e-commerce site or generating smaller previews of large photos.

Properties

Name Meaning
Image URL URL of the image to resize (must be publicly accessible).
Width New width in pixels for the resized image.
Height New height in pixels for the resized image.
Maintain Aspect Ratio Whether to maintain the original aspect ratio when resizing (true or false).

Output

The node outputs JSON data containing the result of the resize operation. Typically, this will include information about the resized image such as its new dimensions and possibly a URL or base64 string representing the resized image. The node does not explicitly output binary data but works with image URLs and metadata.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit service.
  • The node sends a POST request to the /image/resize endpoint of the 0CodeKit API.
  • The input image must be publicly accessible via URL; private or local files are not supported directly.

Troubleshooting

  • Image URL inaccessible: If the provided image URL is not publicly accessible or returns an error, the resize operation will fail. Ensure the URL is correct and reachable from the internet.
  • Invalid dimensions: Providing zero or negative values for width or height may cause errors. Use positive integers.
  • Aspect ratio conflicts: If "Maintain Aspect Ratio" is enabled but both width and height are specified, the service may override one dimension to preserve the ratio.
  • Authentication errors: Missing or invalid API credentials will prevent the node from communicating with the service. Verify that the API key is correctly configured.
  • Network issues: Connectivity problems can cause timeouts or failures. Check network access and proxy settings if applicable.

Links and References

Discussion