Overview
This node integrates with the Wiro AI service to restore and upscale images. It takes an input image URL, applies restoration with a configurable strength, and increases the resolution by a specified upscale factor. This is useful for enhancing old or low-quality images, improving visual clarity, or preparing images for printing or detailed viewing.
Practical examples:
- Restoring damaged or noisy photographs.
- Upscaling product images for e-commerce platforms.
- Enhancing artwork or scanned documents.
Properties
| Name | Meaning |
|---|---|
| Enter Your Image URL | The URL of the image you want to restore and upscale. |
| Weight | Restoration strength parameter; controls how much restoration is applied (e.g., "0.5"). |
| Upscale | Factor by which to increase the image resolution (e.g., "2" doubles the size). |
Output
The node outputs a JSON object with the following structure:
{
"taskid": "string",
"url": "string",
"status": "string"
}
taskid: Identifier for the processing task assigned by the Wiro API.url: The URL of the restored and upscaled image once processing is complete.status: Indicates the result of the operation; possible values are"completed"if successful or"failed"if the process did not succeed.
No binary data output is produced directly by this node; instead, it provides a URL to access the processed image.
Dependencies
- Requires an API key credential for authenticating with the Wiro AI service.
- Uses the Wiro AI REST API endpoint at
https://api.wiro.ai/v1/Run/wiro/image-restoration. - Relies on helper functions to generate authentication headers and poll the task status until completion.
Troubleshooting
- Missing or invalid API credentials: Ensure that the API key and secret are correctly configured in the node credentials.
- Invalid or unreachable image URL: Verify that the input image URL is accessible and points to a valid image.
- API response missing task ID or token: This indicates an issue with the API request or service availability. Check network connectivity and API limits.
- Task status returns failure codes ("-1", "-2", "-3", "-4"): These indicate different failure states from the Wiro API. Retrying or adjusting parameters may help.
- Timeouts during polling: If the task does not complete in expected time, check the network connection and Wiro service status.
Links and References
- Wiro AI Documentation (hypothetical link for reference)
- n8n documentation on Creating Custom Nodes