mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-12-15 16:43:38 +00:00
DXCC 999
This commit is contained in:
BIN
webassets/img/flags/999.png
Normal file
BIN
webassets/img/flags/999.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 348 B |
@@ -19,4 +19,7 @@ for dxcc in data["dxcc"]:
|
|||||||
draw = ImageDraw.Draw(image)
|
draw = ImageDraw.Draw(image)
|
||||||
draw.text((0, -10), flag, font=ImageFont.truetype("/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf", 109), embedded_color=True)
|
draw.text((0, -10), flag, font=ImageFont.truetype("/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf", 109), embedded_color=True)
|
||||||
outfile = str(id) + ".png"
|
outfile = str(id) + ".png"
|
||||||
image.save(outfile, "PNG")
|
image.save(outfile, "PNG")
|
||||||
|
|
||||||
|
image = Image.new("RGBA", (140, 110), (255, 0, 0, 0))
|
||||||
|
image.save("999.png", "PNG")
|
||||||
Reference in New Issue
Block a user