dither-portrait playground

Drop in a photo and see how it dithers before you add the action.

Source
Drop an image, or click to choose
Nothing leaves your browser
Settings
dark
light

Download

This is a preview. Pillow downsamples with Lanczos and a canvas does not, so the grain differs a little from what the action commits. The threshold, the error diffusion, and the wave field are identical.

Set it up

The 1st button opens GitHub with the workflow already filled in, so you only have to press Commit. Committing it also runs it once.

Then paste this where you want it in your README:

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="portrait-dark.svg">
  <img alt="portrait" src="portrait-light.svg" width="330">
</picture>

Workflow