Logo: the mark for BIMI (lannadesk-bimi.svg)
CI / secret scan (push) Successful in 6s
CI / fmt, clippy, tests (push) Failing after 49s
CI / release (push) Skipped

SVG Tiny PS as the BIMI profile asks: a square navy ground (mail apps
crop it round), the drawing at 84 percent so its tips stay clear of the
circle, title and description, 96 px. lannadesk.com serves it at
/brand/lannadesk-bimi.svg for the record default._bimi.lannadesk.com.
This commit is contained in:
grabowski committed 2026-11-22 23:03:45 +07:00
1 parent 72a4faf71a
commit 35fc888498
2 files changed
+20

No files matched your search

+19
View File
@@ -70,6 +70,23 @@ def svg(w, h, body, title):
)
def bimi():
"""The mark for BIMI (the sender's picture in mail apps): SVG Tiny PS as
the BIMI profile asks, a square solid ground (the apps crop it round),
the drawing a little smaller so its tips stay clear of the circle, a
title and a description, no rounded tile, at least 96 px."""
return (
'<svg version="1.2" baseProfile="tiny-ps" xmlns="http://www.w3.org/2000/svg" '
'viewBox="0 0 64 64" width="96" height="96">'
"<title>Lanna Desk</title>"
"<desc>The mark of Lanna Desk, Chiang Mai: a Lanna gable over a desk.</desc>"
f'<rect width="64" height="64" fill="{NAVY}"/>'
'<g transform="translate(32 33) scale(0.84) translate(-32 -32)">'
+ mark(ground=None)
+ "</g></svg>\n"
)
def lockup(name_fill, tag_fill, roof, desk, ground):
"""The mark, then "Lanna Desk" and the line under it."""
bold = FONTS / "Sarabun-Bold.ttf"
@@ -94,6 +111,8 @@ def main():
"lannadesk-logo.svg": lockup(NAVY, GOLD_ON_LIGHT, GOLD, WHITE, NAVY),
# on navy or dark: no tile, white name, gold line
"lannadesk-logo-dark.svg": lockup(WHITE, GOLD, GOLD, WHITE, None),
# the sender's picture in mail apps (BIMI), served by lannadesk.com
"lannadesk-bimi.svg": bimi(),
# one colour, for stamps, fax and engraving
"lannadesk-logo-mono.svg": lockup(NAVY, NAVY, NAVY, NAVY, None),
}