Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
Image → Resize Image
AI-generatedOverview
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/resizeendpoint 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
- 0CodeKit API Documentation (base URL used by the node)
- General image resizing concepts: https://en.wikipedia.org/wiki/Image_scaling