No description
Find a file
2025-10-17 23:54:46 +02:00
.forgejo/workflows Convert images to png for better support 2025-10-16 21:13:56 +02:00
images Upload BIMI converted image 2025-10-16 22:40:05 +02:00
embed_fonts.py Improve generation and fonts 2025-10-16 17:48:34 +02:00
LICENSE Initial commit 2025-10-16 00:38:09 +02:00
README.md Add README 2025-10-17 23:54:46 +02:00
signature_base64_generated.html 🤖 Auto-generate email signatures [skip ci] 2025-10-16 19:43:33 +00:00
signature_hotlinked_generated.html 🤖 Auto-generate email signatures [skip ci] 2025-10-16 19:23:29 +00:00
signature_template.html Set Weblate logo width to auto 2025-10-16 21:22:59 +02:00

Aichan Mail Signature

My email signature in two variants: hot-linked images and embedded (base64) images

Image URLs

Links for images are served from Forgejo raw URLs:

https://git.prisma.moe/aichan/aichan_mail_signature/raw/branch/main/images/{filename}

Automatic Base64 Generation

The Forgejo Actions workflow (.forgejo/workflows/generate-signature.yml) automatically:

  1. Triggers on:

    • Push to main/master branch
    • Changes to images/ or signature_template.html
    • Manual trigger via Forgejo UI
  2. Process:

    • Reads signature_template.html
    • Converts all images in images/ to base64
    • Minifies output (removes whitespace between tags)
    • Generates signature_base64_generated.html
    • Auto-commits and pushes (with [skip ci] to prevent loops)

Usage

Option A: Hot-Linked Signature

  1. Push to Forgejo:

    git add .
    git commit -m "Update signature"
    git push
    
  2. Copy to Mail:

    • Open signature.html in browser
    • Select all (Ctrl+A), Copy (Ctrl+C)
    • Paste into the mail signature editor

Pros: Lightweight, easy to update Cons: Requires external image loading

Base64 Signature (Maximum Compatibility)

  1. Wait for CI/CD to generate signature_base64_generated.html

  2. Copy to Mail:

    • Open signature_base64_generated.html in browser
    • Select all, copy, paste

Pros: Works offline, no external dependencies Cons: Larger file size (144K)

Updating Images

Just replace files in images/ folder and push:

cp ~/new_logo.png images/aichan.moe.png
git add images/aichan.moe.png
git commit -m "Update aichan.moe logo"
git push

Hot-linked signature: Updates immediately Base64 signature: Auto-regenerated by CI/CD in ~1 minute