Retro 8-bit bitmap converter supporting many formats
Repo 8bitworkshop/dithertron, read from GitHub 24 h ago. 8bitworkshop has not joined Take My Repo.
8bitworkshop/dithertron is a public repo on GitHub by 8bitworkshop. Retro 8-bit bitmap converter supporting many formats. It declares the GPL-3.0 license on GitHub. It is written mainly in TypeScript, has 104 stars and last changed on 2026-11-15. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-25.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Dithertron is an interactive, browser-based tool that converts full-color images into full-screen 8-bit retro graphics formats. It performs cropping, resizing, palette reduction, and dithering entirely in your browser.
Try it online: https://8bitworkshop.com/dithertron/
Latest dev version: https://8bitworkshop.github.io/dithertron
Some formats (e.g. C64 multicolor, TMS9918A, ZX Spectrum, NES 5-color) split the screen into small sub-blocks that can each display only 2–4 colors from a larger palette. Neighboring sub-blocks affect each other when dithering is enabled, so Dithertron picks good colors for every block and iterates until they stabilize — a simulated-annealing approach with decreasing noise over time.
| Control | Description |
|---|---|
| Bright | Brightness. 50 is neutral. |
| Contrast | Contrast. 50 is neutral. |
| Color | Saturation. 50 is neutral, 0 is grayscale, 100 is doubled. Next to it is the color error function used when matching a pixel to a palette entry: Perceptual, Hue-Based, Distance, or Maximum. |
| Diversity | How eagerly block palettes pick new colors vs. reusing existing ones (reduced-palette modes only). Default 60. |
| Diffusion | How much error is diffused to neighboring pixels and the diffusion kernel. Default 75. |
| Serpentine | Alternate the dithering scan direction on every row (left-to-right, then right-to-left) to avoid directional drift. On by default in the UI; the serpentine setting/option defaults to off so library output is unchanged. |
| Ordered | Amount of ordered (Bayer) dithering blended in. Default 0. |
| Noise | Amount of annealing noise applied while choosing block colors (block-based modes only). Default 5. |
| Gray | How strongly gray parts of the image prefer gray palette entries. Default 50; 0 is off. This keeps a black-and-white image from picking colorful midtones on palettes with few grays (e.g. MSX/Coleco). Lower it to let colored midtones into neutral areas; colored parts of the image are unaffected. Ignored when the palette has fewer than two gray shades (e.g. the green Game Boy screen), since there is nothing to prefer. The dither() option defaults to 0. |
The reduced color palette is shown as swatches beneath the output canvas. For adaptive-palette formats (those that reduce a larger palette) click a swatch to change that color, and use Reset colors to go back to the palette Dithertron picked. Formats with a fixed hardware palette or an index-only native export show read-only swatches.
Downloaded PNGs carry the pixel aspect ratio in a pHYs chunk, so desktop image viewers
and editors show the same shape as the preview.
For modes with constrained palette choices (e.g. C64 Hires, ZX Spectrum, MSX/Coleco) it usually helps to reduce the Diffusion parameter, otherwise dithering errors accumulate and create blocky splotches.
<image>-<system>.bin.Clone the main branch:
git clone -b master --single-branch https://github.com/8bitworkshop/dithertron.git
cd dithertron
Install dependencies and build:
npm install
make setup # copies front-end deps into lib/ and fonts/ (use "make setupwin" on Windows)
npm run build # builds dist/worker.js and dist/ui.js with esbuild
Start a development server with auto-rebuild:
make watch
Then open http://localhost:8189.
| Command | Description |
|---|---|
npm run build |
Build both worker and UI bundles into ./dist |
npm run esbuild-worker |
Build just the web-worker bundle |
npm run esbuild-ui |
Build just the UI bundle |
npm run build:lib |
Build the npm library (ESM + declarations) into ./gen |
npm run typecheck |
Type-check the TypeScript sources |
npm run clean |
Remove the generated ./gen and ./dist directories |
make distro |
Assemble a deployable copy in ./tmp/dist |
npm run test # unit tests + browser tests
npm run test-unit # tap-based unit tests
npm run test-web # Nightwatch headless browser tests
npm run release -- patch # bump version, changelog, commit, tag
npm publish
scripts/release.mjs refuses a dirty tree, runs typecheck and tests, moves the
changelog's [Unreleased] entries under ## [x.y.z] - date, bumps
package.json/package-lock.json, then commits and tags vx.y.z. Add
--push to push with git push --follow-tags, --dry-run to preview, or
--no-tests to skip the suite. npm pack/npm publish build the library
first via prepack.
npm install @8bws/dithertron
The package is ESM, includes TypeScript declarations, requires Node 18 or newer,
and has no runtime dependencies. It has no DOM requirements, so it runs in Node
and in browsers. Images are RGBA pixels (like canvas ImageData); they are
stretched to the target size.
import { dither, listSystems } from '@8bws/dithertron';
// a built-in system, by id (see listSystems())
const c64 = dither({ data, width, height }, 'c64.multi', { diffuse: 0.5 });
c64.rgba; // dithered image as RGBA bytes
c64.indexed; // palette index per pixel
c64.native; // native binary for the system, when it has an exporter
// your own system: any size and number of colors
const mine = dither({ data, width, height }, { width: 128, height: 96, colors: 6 });
// ...optionally choosing from a fixed palette (#rrggbb, [r,g,b], or packed r|g<<8|b<<16)
const mono = dither({ data, width, height },
{ width: 64, height: 64, colors: 3, palette: ['#000000', '#8844cc', '#ffffff'] });
Options: iterations, diffuse, ordered, noise, ditherfn (see kernels),
paletteDiversity, errfn, grayBias. Other exports include createSystem, getSystem,
exportNative, resizeImage, SYSTEMS, palettes, kernels and the Dithertron class.
#rgb shorthand is not supported; use six hex digits.
Build the package with npm run build:lib; it writes ESM and type declarations to gen/.
npm pack and npm publish run that build automatically.
Copyright © 2016-2026 Steven Hugg.
This project is GPL-3.0 licensed.
Dependencies retain their original licenses.
All exported code is licensed under CC0.
Formats in the first two groups can be exported natively (Download native); the first group can also generate a runnable 8bitworkshop viewer project via the Open in 8bitworkshop button. The last group can only be previewed and/or downloaded as an image.
8bitworkshop/dithertron is a public repo on GitHub by 8bitworkshop. Retro 8-bit bitmap converter supporting many formats.
It declares the GPL-3.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-15. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run dithertron. What is known comes from GitHub. It declares the GPL-3.0 license on GitHub. Its last change was on 2026-11-15. It has 104 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.