'''
Reginald Zaccardi-Richey
TacoBook Cover Image Editor
'''


'''
This short program takes a saved image,
opens the image, resizes the image to a 
smaller size,then writes RANDOM TACO 
COOKBOOK on the image
'''
from PIL import Image, ImageDraw, ImageFont
image = Image.open('tacoCover2.jfif')#opens saved cover image
image.thumbnail((500,500))#resize image to 500x500
imageDraw = ImageDraw.Draw(image)#allows drawing on image
font = ImageFont.truetype('DejaVuSans.ttf', 50)#creates a font to use
imageDraw.text([20, 25], 'RANDOM\nTACO\nCOOKBOOK', fill='DarkViolet', font=font)#writes title on image using font variable
image.save('tacobookCover.jpeg')#save new image
5df2944ab09488573c32b7a6a4531de74dc5f6a1
<mask token>

<mask token>
image.thumbnail((500, 500))
<mask token>
imageDraw.text([20, 25], """RANDOM
TACO
COOKBOOK""", fill='DarkViolet',
    font=font)
image.save('tacobookCover.jpeg')

<mask token>
image = Image.open('tacoCover2.jfif')
image.thumbnail((500, 500))
imageDraw = ImageDraw.Draw(image)
font = ImageFont.truetype('DejaVuSans.ttf', 50)
imageDraw.text([20, 25], """RANDOM
TACO
COOKBOOK""", fill='DarkViolet',
    font=font)
image.save('tacobookCover.jpeg')

<mask token>
from PIL import Image, ImageDraw, ImageFont
image = Image.open('tacoCover2.jfif')
image.thumbnail((500, 500))
imageDraw = ImageDraw.Draw(image)
font = ImageFont.truetype('DejaVuSans.ttf', 50)
imageDraw.text([20, 25], """RANDOM
TACO
COOKBOOK""", fill='DarkViolet',
    font=font)
image.save('tacobookCover.jpeg')

'''
Reginald Zaccardi-Richey
TacoBook Cover Image Editor
'''


'''
This short program takes a saved image,
opens the image, resizes the image to a 
smaller size,then writes RANDOM TACO 
COOKBOOK on the image
'''
from PIL import Image, ImageDraw, ImageFont
image = Image.open('tacoCover2.jfif')#opens saved cover image
image.thumbnail((500,500))#resize image to 500x500
imageDraw = ImageDraw.Draw(image)#allows drawing on image
font = ImageFont.truetype('DejaVuSans.ttf', 50)#creates a font to use
imageDraw.text([20, 25], 'RANDOM\nTACO\nCOOKBOOK', fill='DarkViolet', font=font)#writes title on image using font variable
image.save('tacobookCover.jpeg')#save new image