projects
text-to-pixel-image
February 24, 2026
text-to-pixel-image is a small Python script that takes a text string and renders each character as a coloured square in a grid, producing a pixel art image. Colours are assigned from a pre-generated sorted_chars.json mapping; a companion colour generator.py script creates a new colour set if needed.
Status
Unmaintained.
Usage
- Ensure
sorted_chars.jsonis in the same directory asmain.py(runcolour generator.pyto generate it if missing) - Run:
python main.py - Enter the desired output width and height in pixels
- Enter the text string to convert
- The result is saved as
output.png
Requirements
Python 3, Pillow (pip install Pillow).
Licence
See repository.
← all docs