Pixelated gradient avatars

GET /api/v1/avatar/{seed} — optional query params:

Examples:


diagonal gradient

radial gradient

horizontal stripes

vertical stripes

diagonal stripes

3-band, random dither

3-band, linear dither

4-band, 8-bit retro dither

Photo → dithered halftone

POST a raw image (JPEG/PNG/GIF/BMP bytes as the request body) to /api/v1/halftone to get back a dithered, pixelated halftone PNG:

curl --data-binary @photo.jpg "http://localhost:8080/api/v1/halftone?colors=4" -o out.png

Optional query params:

Try it:

original
halftone