0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Image → Blur Image

AI-generated

Overview

The node provides an image processing utility specifically for applying a Gaussian blur effect to images. It supports blurring images either by providing a direct image URL or by supplying a Base64-encoded image buffer. Users can control the intensity of the blur through a sigma value, which determines the strength of the Gaussian blur. The output can be returned either as a Base64-encoded string or as a URL pointing to the processed image.

This node is beneficial in scenarios where you want to obscure sensitive information in images, create artistic effects, or prepare images for privacy-compliant sharing. For example, blurring faces in photos before publishing or softening backgrounds in product images.

Properties

Name Meaning
Data Type Choose whether to provide the image as a URL ("Use Image URL") or as a Base64-encoded image buffer ("Use Image Buffer").
Image URL The URL of the image to blur (used if "Data Type" is set to "Use Image URL").
Image Buffer The Base64-encoded image data to blur (used if "Data Type" is set to "Use Image Buffer").
Sigma Value Controls the intensity of the Gaussian blur. Higher values produce more blur. Accepts values from 0.3 to 1000.0.
Get as URL Boolean flag indicating whether to return the blurred image as a URL (true) or as a Base64-encoded string (false).
URL Filename The filename to use when returning the result as a URL. Only applicable if "Get as URL" is true.

Output

The node outputs a JSON object containing the blurred image. Depending on the "Get as URL" property:

  • If getAsUrl is false, the output contains a Base64-encoded string representing the blurred image.
  • If getAsUrl is true, the output contains a URL pointing to the blurred image file, with the specified filename.

The exact structure of the output JSON is not detailed in the source but will include either the Base64 image data or the URL to the processed image.

Dependencies

  • Requires an API key credential for authentication with the external image processing service at https://prod.0codekit.com.
  • The node sends a POST request to the /image/blur endpoint of this service with the provided parameters.
  • No other external dependencies are indicated.

Troubleshooting

  • Common issues:

    • Providing an invalid or inaccessible image URL may cause the blur operation to fail.
    • Supplying improperly formatted Base64 image data can lead to errors.
    • Using a sigma value outside the allowed range (0.3 to 1000) might result in validation errors.
    • If requesting the output as a URL, network or permission issues on the hosting service could prevent access to the blurred image.
  • Error messages and resolutions:

    • Invalid image data: Check that the image URL is correct and publicly accessible, or verify that the Base64 string is properly encoded.
    • Sigma value out of range: Adjust the sigma value to be within the allowed limits.
    • Authentication errors: Ensure the API key credential is correctly configured and valid.
    • Failed to retrieve blurred image URL: Confirm that the hosting service is operational and that the filename is valid.

Links and References

Discussion