Spacing?
This commit is contained in:
parent
776d6c5965
commit
de22b63532
|
@ -21,12 +21,9 @@ def append_airport(filename, icao, airport, distance_mi):
|
||||||
distance_km = distance_mi * 1.609
|
distance_km = distance_mi * 1.609
|
||||||
|
|
||||||
# create Image object with the input image
|
# create Image object with the input image
|
||||||
|
|
||||||
image = Image.open(filename)
|
image = Image.open(filename)
|
||||||
|
|
||||||
# initialise the drawing context with
|
# initialise the drawing context with
|
||||||
# the image object as background
|
# the image object as background
|
||||||
|
|
||||||
draw = ImageDraw.Draw(image)
|
draw = ImageDraw.Draw(image)
|
||||||
|
|
||||||
#Setup fonts
|
#Setup fonts
|
||||||
|
@ -61,6 +58,5 @@ def append_airport(filename, icao, airport, distance_mi):
|
||||||
(x, y) = (320, 783)
|
(x, y) = (320, 783)
|
||||||
text = airport[0:56]
|
text = airport[0:56]
|
||||||
draw.text((x, y), text, fill=black, font=mini_font)
|
draw.text((x, y), text, fill=black, font=mini_font)
|
||||||
|
|
||||||
# save the edited image
|
# save the edited image
|
||||||
image.save(filename)
|
image.save(filename)
|
Loading…
Reference in New Issue