🔄

Image Sharpener

Sharpen an image using unsharp mask

GET 10 credits /v1/image/filter/sharpen
curl "https://image.toolkitapi.io/v1/image/filter/sharpen?url=https://toolkitapi.io/static/samples/sample-image.png&format=png"
import httpx

resp = httpx.get(
    "https://image.toolkitapi.io/v1/image/filter/sharpen?url=https://toolkitapi.io/static/samples/sample-image.png&format=png",
)
print(resp.json())
const resp = await fetch("https://image.toolkitapi.io/v1/image/filter/sharpen?url=https://toolkitapi.io/static/samples/sample-image.png&format=png", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "image": "iVBORw0KGgoAAAANSUhEUg...(base64 data)...",
  "format": "png"
}

Try It Live

Live Demo

Description

Sharpen an image using unsharp mask

How to Use

1

1. Provide the source image via the `url` query parameter.

2

2. Optionally configure the output `format` and `quality` parameters.

About This Tool

Use the Image Sharpener to crisp up blurry or soft images. It applies a professional-grade unsharp mask algorithm (radius 2px, 150% strength, threshold 3) for balanced sharpening that enhances detail without amplifying noise.

This is essential after resizing images (which always introduces some softness), for improving scanned documents, or for enhancing product photography. The result is a noticeably crisper image with preserved natural appearance.

Why Use This Tool

Frequently Asked Questions

What sharpening algorithm is used?
The endpoint applies a PIL UnsharpMask with radius=2, percent=150, and threshold=3. This is a balanced setting suitable for most images.
Can I control the sharpening strength?
The current endpoint uses fixed sharpening parameters. For lighter or heavier sharpening, consider applying the filter multiple times or combining with contrast adjustment.
Will sharpening amplify JPEG artifacts?
The threshold parameter (3) helps avoid sharpening noise and minor artifacts. However, heavily compressed JPEGs may show some artifact enhancement.

Start using Image Sharpener now

Get your free API key and make your first request in under a minute.