A Python tool for converting standard image files (JPG, PNG, GIF, BMP, etc.) into Game Boy–compatible graphics.
This script converts an image into the Game Boy 4-shade palette, slices it into 8×8 tiles, generates a Game Boy–accurate preview image, and outputs ROM-ready 2bpp tile binary.
- Converts any common image format to the 4-color Game Boy palette
- Slices the image into 8×8 tiles and encodes them in Nintendo 2bpp format (16 bytes per tile)
- Produces a preview PNG showing how the image will look on a DMG Game Boy
- Outputs a raw
.binfile containing tile data ready forINCBINor other toolchains - Works for sprites, tilesets, UI art, backgrounds, and logos
Install the dependency:
pip install pillow
---
## Usage
Run the script:
python3 convertimage.py input_image.jpg output_sprite.bin preview.png