Sharpen
Sharpens the image, enhancing edge contrast.
How to use
The sharpen transformation allows you to enhance the edge contrast in an image, making it appear more defined and crisp.
Pass the following query param to the API endpoint:
sharpen=sigma
Where:
sigma
is the strength of the sharpening effect.
For example: sharpen=3.5
Parameter
sigma
: The strength of the sharpening effect. This parameter accepts positive float values:
- Lower values (e.g., 0.5 to 2.0) result in subtle sharpening.
- Higher values (e.g., 3.0 to 5.0) produce more pronounced sharpening effects.
- Very high values may lead to over-sharpening and introduce artifacts.
Effect of Sharpening
- Increases the contrast between adjacent pixels, particularly along edges in the image.
- Enhances the perceived detail and clarity of the image.
- Can help correct slight blurriness or focus issues.
This transformation is useful for improving the overall crispness of images, especially those that may have lost some sharpness during resizing or compression.
Original Image
URL : https://www.thunderimage.com/sample/yosemite.jpg
Image with moderate sharpening
URL: /transform?url=https://www.thunderimage.com/sample/yosemite.jpg&sharpen=2.0
Image with strong sharpening
URL: /transform?url=https://www.thunderimage.com/sample/yosemite.jpg&sharpen=4.0
Best Practices
- Start with lower sigma values (around 1.0 to 2.0) and gradually increase if needed.
- Be cautious with high sigma values, as they can introduce noise and create an unnatural look.
- Use sharpening judiciously on portraits to avoid emphasizing skin imperfections.
- Apply sharpening as one of the last steps in your image processing workflow.
- Consider the final display size of the image when choosing the sharpening strength.
- Combine with other adjustments like contrast or saturation for more refined image enhancements.
Authorizations
API key required for authentication
Query Parameters
The URL of the image to be transformed.
The strength of the sharpening effect (sigma). Higher values result in stronger sharpening.
x > 0
Response
The transformed image in JPEG format.