Untitled

 avatar
unknown
plain_text
6 months ago
532 B
2
Indexable
from PIL import ImageDraw

# Create a copy of the image to work on
img_no_text = img.copy()
draw = ImageDraw.Draw(img_no_text)

# Define the areas with text that need to be covered.
# Coordinates are based on the location of text in the uploaded image.

# Cover the text at the bottom-left (Page 84)
draw.rectangle([(10, 1130), (150, 1180)], fill="white")

# Cover the text at the bottom-right (mp4directs.com)
draw.rectangle([(650, 1130), (1030, 1180)], fill="white")

# Show the edited image
img_no_text.show()

Editor is loading...
Leave a Comment