I want to power an E-Ink Display, and for that, I need 2-bit images. I am currently using Pillow to create an image and save it, but the options are only 1-bit and 8-bit for B&W / grayscale images:
from PIL import Image
im1 = Image.new('1', (600, 800), color=1)
# creates 1-bit image, background color options range from 0 to 1, black and white
im2 = Image.new('1', (600, 800), color=123)
# creates 8-bit image, background color options range from 0 to 255, grayscale
Can I create/save 2-bit images? Or alternatively, is there some way to convert them afterwards?
I am aware of this post: converting images to indexed 2-bit grayscale BMP. I wonder whether there is a more efficient way.