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 → Sharpen Image
AI-generatedOverview
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/sharpenendpoint 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
- 0CodeKit API Documentation (general base URL referenced)
- Image sharpening concepts: https://en.wikipedia.org/wiki/Image_sharpening
- Base64 encoding reference: https://en.wikipedia.org/wiki/Base64