PY

(real quick example)

PYHTON ADD TEXT TO IMAGES

SETTINGS - IMAGE TEXT FONT

02

sImg = "demoA.webp"  # source image sSave = "demoB.webp" # save as sText = "FRIED RICE"  # text to write sFont = "Expectative.ttf" # font file sSize = 32 # font size sColor = (255, 255, 255) # text color sPos = (10, 10) # write text at this position

WRITE TEXT TO IMAGE

03

IMPORT PILLOW from PIL import Image, ImageFont, ImageDraw

WRITE TEXT TO IMAGE + SAVE iOpen = Image.open(sImg) iDraw = ImageDraw.Draw(iOpen) iFont = ImageFont.truetype(sFont, sSize) iDraw.text(sPos, sText, fill=sColor, font=iFont) iOpen.save(sSave)