PY
(real quick example)
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
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)