Increase local edge contrast with a 3×3 convolution while preserving image dimensions.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
A 3×3 kernel gives the centre weight 1 + 4a and four neighbours −a, with diagonal weights zero. Coordinates outside the image clamp to the nearest edge before RGB channels are accumulated.
Input: data:image/png;base64,iVBORw0KGgo= Amount: 1
PNG data URL with edge-enhanced RGB pixels
Scanned documents increase crispness, photo pipelines sharpen before export, and graphics lessons demonstrate convolution kernels.