diff --git a/gba/tools/img2bin.py b/gba/tools/img2bin.py index a574950..0e8f204 100644 --- a/gba/tools/img2bin.py +++ b/gba/tools/img2bin.py @@ -1,12 +1,14 @@ #!/usr/bin/python from PIL import Image import sys +import os """Convert image to raw binary using Python Imaging Library.""" if len(sys.argv) != 3: - print "Usage: %s " + print "Usage: %s " % os.path.split(sys.argv[0])[1] print "WARNING: It only converts 8x8 pixel images at 8bit the moment." + sys.exit() im = Image.open(sys.argv[1]) output = open(sys.argv[2], "wb")