@ -328,6 +328,7 @@ def bitmap_img(file):
for bit in range(8):
bit_val = 0
x = 8*col+bit
if x < im.width:
pixel_color = im.getpixel( (x, row) )
if isinstance(pixel_color, tuple):
monochrome_color = sum(pixel_color[:3]) / len(pixel_color[:3])