A set of utilities for osdev written in python img2data Converts an image to a C array (I used to get a 256-color VGA palette as an array) img2data.py <input image> <start x> <start y> <shift x> <shift y> <output format> <output path>