- Image
- size
- color
Create First Image
examples/pil/create_first_image.py
from PIL import Image img = Image.new('RGB', size=(100, 60), color='#eb8634') img.save('first.png') img.show() # Using ImageMagic on Linux
- Color can be one of the well-known names e.g. "red"
- Color can be RGB in decimal or hex. (RGB=Red Green Blue)