Skip to content

sweetcorn

Turn smooth pixels into crunchy kernels
Dithered image of sweetcorn cobs

Sweetcorn is a collection of JavaScript image dithering tools for Sharp.

30+ built-in algorithms

Includes a range of threshold maps and error diffusion kernels, including classics like Floyd-Steinberg, Atkinson, Bayer matrixes, and more.

See all algorithms →

Flexible pipeline

Plugs into any Sharp-based image processing pipeline, allowing processing before and after the dithering is applied.

See the Node.js guide →