Created
November 20, 2023 15:45
-
-
Save jasonrahm/a3d192623db2fd1d091152bc3fd818c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image, ImageDraw, ImageFont | |
font = ImageFont.truetype('/Users/jrahm/Library/Fonts/PreCursive-RailsDashed.otf', 120) | |
text = "I like Dory helping Nemo." | |
image = Image.new("RGB", (1920, 1080), (255, 255, 255)) | |
draw = ImageDraw.Draw(image) | |
draw.text(xy=(100, 100), text=text, font=font, fill=(0, 0, 0)) | |
image.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment