""" Purpose: Provide a minimal image creation template Author: Luther Tychonievich (lat7h) License: Released to the public domain """ from PIL import Image width = 400 # pixels height = 300 # pixels dimensions = (width, height) image = Image.new('RGB', dimensions, color='yellow') # the "color" keyword argument is optional, defaults to 'black' image.show() # pops up a window image.save('blank_image.jpg') # creates (or overwrites) a file