0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Image → Sharpen Image

AI-generated

Overview

The "Sharpen Image" operation of the Image resource in this node provides an image sharpening utility. It allows users to enhance the clarity and detail of images by applying a sharpening filter with adjustable intensity. This is useful in scenarios where images are slightly blurred or lack crispness, such as improving photos for presentations, enhancing scanned documents, or preparing images for further processing.

Practical examples include:

  • Sharpening product photos before uploading them to an e-commerce site.
  • Enhancing screenshots or scanned images to improve readability.
  • Preparing images for computer vision tasks that require clear edges.

Properties

Name Meaning
Data Type Choose the source type of the image data: either a publicly accessible URL or a base64-encoded buffer. Options: URL, Buffer.
Image URL The URL of the image to sharpen. Must be publicly accessible. Used only if Data Type is URL.
Image Buffer Base64-encoded image data to sharpen. Used only if Data Type is Buffer.
Sigma Value Numeric value controlling the intensity of the sharpening effect. Higher values increase sharpness. Default is 1.

Output

The node outputs JSON data representing the result of the sharpening operation. Typically, this will include the processed image data, likely in a base64-encoded format or a URL pointing to the sharpened image. If binary data output is supported, it would represent the sharpened image file content.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit service.
  • The node sends a POST request to the /image/sharpen endpoint of the 0CodeKit API.
  • The user must ensure that URLs provided are publicly accessible or that base64 buffers are correctly formatted.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Common issues:

    • Providing a non-public URL will cause the API to fail fetching the image.
    • Incorrectly formatted base64 strings may lead to errors or invalid output.
    • Using an invalid or missing API key credential will result in authentication errors.
    • Setting an excessively high sigma value might produce unnatural or noisy images.
  • Error messages and resolutions:

    • "Image not accessible" — Verify the image URL is publicly reachable without authentication.
    • "Invalid image data" — Check that the base64 string is complete and properly encoded.
    • "Authentication failed" — Ensure the API key credential is set up correctly in n8n.
    • "Parameter out of range" — Adjust the sigma value to a reasonable number (e.g., between 0.1 and 5).

Links and References

Discussion