Reputation: 997
I have some GeoTIFF images with a few points with X and Y coordinates. I wish to display the image with the points annotated as +
or `x' overlayed on the image.
How do I achieve this using python?
Upvotes: 3
Views: 6988
Reputation: 398
Perhaps by just creating a new image with annotation:
from PIL import Image, ImageDraw, ImageFont
image = Image.open("image.png")
draw = ImageDraw.Draw(image)
font = ImageFont.truetype("arial.ttf", 20, encoding="unic")
draw.text( (10,10), u"Your Text", fill=‘#a00000’, font=font)
image.save("out.png","PNG")
Found: here.
Upvotes: 4