Your picture never leaves this tab: it is dithered right here, by the same code npm i ditherdance installs.
Your picture never leaves this tab: it is dithered right here, by the same code npm i ditherdance installs.
Seven error-diffusion kernels and one ordered matrix. Each works with any palette, and each is one option in the library.
| method | kind | what it looks like |
|---|---|---|
| floyd-steinberg | Error diffusion | The classic: smooth, fine grain |
| atkinson | Error diffusion | Bright and contrasty, the early Mac look. Passes on only 6/8 of the error |
| jarvis-judice-ninke | Error diffusion | Softer, spreads error over 12 neighbours |
| stucki | Error diffusion | Like Jarvis, a little sharper |
| burkes | Error diffusion | Between Floyd-Steinberg and Stucki |
| sierra | Error diffusion | Smooth, close to Jarvis but cheaper |
| sierra-lite | Error diffusion | Cheapest diffusion, three taps |
| bayer | Ordered | A regular cross-hatch: the fastest, and stable between video frames |
No. The picture is read and dithered inside your browser tab and never sent to us or anyone else. It is gone when you close the tab.
Floyd-Steinberg for photos with smooth, fine grain. Atkinson for a bright, high-contrast early Mac look. Bayer for a regular cross-hatch that does not shimmer between video frames and ports straight to a GPU shader.
Anything your browser can display, such as JPEG, PNG or WebP. Drop the file on the page, paste it from the clipboard or pick it with the file chooser.
Yes, as a PNG with the download button. The page also shows the exact code that gives the same result with the ditherdance package.
Install ditherdance from npm and call dither(imageData, { method: 'atkinson' }) on a canvas's ImageData. It works in place, in a Web Worker and in Node on any RGBA buffer.