I'm trying to convert text into bitmap, but not bitmap of the binary but the text itself.
E.g for the text "SCIENCE" the picture should be the result. Has this been done before? I can't find anything on it...
The solution I found:
from PIL import Image, ImageDraw, ImageFont
img = Image.new('L', (100, 10))
d = ImageDraw.Draw(img)
d.text((1,1), "SCIENCE",255)
img.save('pil_text.png')