Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created April 19, 2023 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/2f533eb41cf6760ca590b69837b4e94a to your computer and use it in GitHub Desktop.
Save prateekjoshi565/2f533eb41cf6760ca590b69837b4e94a to your computer and use it in GitHub Desktop.
# Draw the text on the image
text_draw.text(text_position, text_message, fill=text_color, font= text_font)
# Combine the background image and text image
combined_image = Image.alpha_composite(background_image.convert("RGBA"), text_image)
# display combined image
plt.imshow(combined_image);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment