0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The "Sharpen" operation of the Image resource in this node applies a sharpening effect to an image. Sharpening enhances the edges and details within an image, making it appear clearer and more defined. This operation is useful in scenarios where images are slightly blurred or lack crispness, such as photos taken in low light or with slight motion blur.

Practical examples include:

  • Enhancing product photos for e-commerce listings.
  • Improving clarity of scanned documents or photographs.
  • Preparing images for further processing or analysis where detail is important.

The node supports input images either by providing a publicly accessible URL or directly as a buffer (binary data). It also allows specifying the intensity of the sharpening effect via the "Sigma" parameter.

Properties

Name Meaning
Code Variables A collection of code variables that can be used if running custom code; each variable has a name/ID and a value.
Type of Data Specifies the type of input image data: either "URL" (a publicly accessible image URL) or "Buffer" (raw image data).
URL The publicly accessible URL of the image to sharpen. Required if "Type of Data" is set to "URL".
Buffer The raw buffer data of the image to sharpen. Required if "Type of Data" is set to "Buffer".
Sigma Numeric value controlling the intensity of the sharpening effect. Higher values typically result in stronger sharpening.
File Name Optional filename for the image being processed. Useful for naming output files or for reference.
Get File as URL Boolean flag indicating whether the output image should be returned as a URL (true) or as raw data (false). Defaults to true.

Output

The node outputs JSON data representing the result of the sharpening operation. The exact structure depends on the underlying service response but generally includes:

  • The sharpened image either as a URL (if Get File as URL is true) pointing to the processed image location, or as binary data if false.
  • Metadata about the processed image may also be included depending on the service.

If binary data is output, it represents the sharpened image content suitable for saving or further processing.

Dependencies

  • Requires an API key credential for authentication with the external service powering the image processing.
  • The image URL must be publicly accessible if using the URL input method.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Invalid or inaccessible image URL: Ensure the provided URL is publicly accessible without authentication and points directly to an image file.
  • Incorrect buffer format: When using buffer input, ensure the data is correctly encoded and represents a valid image.
  • Missing or invalid Sigma value: Provide a numeric value for Sigma; non-numeric or missing values might cause errors or default behavior.
  • API authentication errors: Verify that the API key credential is correctly configured and has necessary permissions.
  • Output not as expected: Check the Get File as URL setting to confirm if you expect a URL or raw data output.

Common error messages will relate to invalid inputs, authentication failures, or network issues accessing the image URL.

Links and References

Discussion