How the 3×3 Unsharp Mask Convolution Kernel Enhances Edge Contrast
Understand center-weighted spatial blur subtraction (`pixel + amount × (pixel - blur)`) executed in a browser Web Worker.
Primary Browser Tool
Image Sharpening Tool
Enhance edge contrast on slightly soft photos or downscaled thumbnails using a Web Worker unsharp-mask filter.
How Subtracting a Low-Pass Blur Sharpens Edges
RapidPNG computes a weighted local average across each pixel and its four cardinal neighbors (`(4·center + up + down + left + right) / 8`), extracts the high-frequency edge difference `(center - blur)`, scales by `(strength / 100) × 1.1`, and adds it back—increasing local boundary contrast across textures while leaving flat regions unchanged.
Processing runs inside a dedicated Web Worker with transferred `ArrayBuffer` memory so browser scroll and controls remain fluid.
Practical Examples
Architectural Stone & Foliage Textures
Low-frequency skies have zero `(center - blur)` delta so sharpening never specks clear sky gradients unnecessarily.
Common Mistakes & Honest Limitations
Mistakes to Avoid
- Confusing unsharp sharpening with true optical deconvolution.
Technical Limitations
- 1px perimeter border rows copy directly untouched to avoid out-of-bounds dark fringes.