![]()
Immich Family Calendar
A printable family birthday calendar made from your Immich library, with a small web app to run it on Unraid (or anywhere with Docker).
- Everyone in Immich → People who has a date of birth gets their face on their birthday.
- Each month’s picture is a collage of that month’s birthday people: group shots of them together first, then each person in turn, favourites first.
- Months with no birthdays feature the other people on the calendar, shared out so each month shows someone different. You can switch them to your favourite photos or an album you choose instead.
- Hand-pick a month by making an Immich album called
Calendar 2027 - March(any month). - 29 February birthdays appear on 28 February in non-leap years.
Optionally, AI enhancements can change photos you pick (add themed characters, restyle a scene) using Google Gemini, OpenAI, FLUX, xAI Grok or an image model on your own server; see the AI guide.
In the web app you choose who goes on the calendar (sort people into groups and tick whole groups), preview every month, reshuffle, swap or pin photos, and export:
| Export | What you get |
|---|---|
| A4 portrait | Self-contained HTML + 13-page A4 PDF (cover + 12 months), no margins, backgrounds on |
| A4 / A3 Double | Middle-binding wall calendar: each month is a photo page above a dates page (26 landscape pages) |
| Vistaprint pack | ZIP of 300 DPI images + face stickers + instructions for Vistaprint’s A4/A3 Double designer |
| YouLovePrint / Doxzoo | Print-ready PDFs with 3 mm bleed, binding clearance and pages in the order they ask for |
The app is read-only: it never changes anything in Immich.
Photos in Google Photos, or no photo server yet? See Coming from Google Photos: copy them into Immich once and the calendar works from there.
New here? Read the step-by-step user guide (with screenshots), also on the docs site: https://welshstew.github.io/immich-calendar-generator/

The people in the screenshots are fictional and AI-generated; see tests/assets/family.
Contents
- Create an Immich API key
- Install on Unraid
- Install with Docker Compose / Podman
- Using the app
- Printing
- Configuration reference
- Command-line tool
- Development
- Troubleshooting
1. Create an Immich API key
- In Immich, open Account Settings → API Keys → New API Key.
- Give it a name such as
family-calendar. -
Choose these permissions. That’s all the app needs, and all of them are read-only:
Permission Used for person.readList people, birthdays and face thumbnails asset.readSearch for photos of people, favourites and album contents asset.viewDownload photo previews and full-size images album.readFind Calendar <year> - <Month>albumsuser.read“Test connection” shows which account the key belongs to (“All” also works, but a read-only key is safer.)
- Copy the key. Immich only shows it once.
While you’re in Immich, open People, click each person and set their name and date of birth. People with a name but no birthday are listed in the app with a link straight to them in Immich.
2. Install on Unraid
Community Applications
Once the app is listed in Community Applications, search the Apps tab for Immich Family Calendar, click Install, fill in the fields below and Apply. Until then, use option A or B.
Option A: from the template
- Download
my-immich-family-calendar.xmlto your flash drive at/boot/config/plugins/dockerMan/templates-user/my-immich-family-calendar.xml. You can do this from the Unraid terminal:wget -O /boot/config/plugins/dockerMan/templates-user/my-immich-family-calendar.xml \ https://raw.githubusercontent.com/welshstew/immich-calendar-generator/main/my-immich-family-calendar.xml - Docker → Add Container, then pick immich-family-calendar from the Template drop-down.
- Check the port (default 8080; change the host port if 8080 is taken) and the two paths.
- Optionally fill in Immich URL and Immich API key (otherwise enter them in the web UI).
- Apply, then click the container icon → WebUI.
Option B: manual “Add Container”
Docker → Add Container, switch on Advanced View, and fill in:
| Field | Value |
|---|---|
| Name | immich-family-calendar |
| Repository | ghcr.io/welshstew/immich-family-calendar:latest |
| Network Type | bridge (or the same custom network as Immich, see below) |
| WebUI | http://[IP]:[PORT:8080]/ |
| Icon URL | https://raw.githubusercontent.com/welshstew/immich-calendar-generator/main/docs/icon.png |
Then Add another Path, Port, Variable… for each of these:
| Type | Name | Container | Host / Value |
|---|---|---|---|
| Port | Web UI | 8080 |
8080 |
| Path | Config | /config |
/mnt/user/appdata/immich-family-calendar |
| Path | Exports | /output |
/mnt/user/appdata/immich-family-calendar/output |
| Variable | PUID | PUID |
99 |
| Variable | PGID | PGID |
100 |
| Variable | TZ | TZ |
Europe/London |
| Variable | Immich URL (optional) | IMMICH_URL |
http://192.168.1.20:2283 |
| Variable | Immich API key (optional, tick “Mask”) | IMMICH_API_KEY |
your key |
Reaching Immich
- By IP:
http://<unraid-ip>:2283works from the defaultbridgenetwork. - By container name: put both containers on the same custom network (Network Type → Custom: …), then use
http://immich_server:2283(or whatever your Immich server container is called). - HTTPS with a self-signed certificate: tick Accept a self-signed HTTPS certificate on the Settings page.
3. Install with Docker Compose / Podman
git clone https://github.com/welshstew/immich-calendar-generator.git
cd immich-calendar-generator
mkdir -p config output # podman needs these to exist; Docker creates them
docker compose up -d # or: podman compose up -d
Open http://localhost:8080. Edit docker-compose.yml to change the port, set IMMICH_URL / IMMICH_API_KEY, or join Immich’s network.
Run it without Compose:
docker run -d --name immich-family-calendar -p 8080:8080 \
-e PUID=99 -e PGID=100 -e TZ=Europe/London \
-v "$PWD/config:/config" -v "$PWD/output:/output" \
ghcr.io/welshstew/immich-family-calendar:latest
4. Using the app
- Settings. Enter the Immich URL and API key, click Test connection, then Save. The key is stored in
/config/settings.json(readable only by the app’s user) and is only ever shown masked (••••••••abcd). IfIMMICH_URL/IMMICH_API_KEYare set, they take priority and the fields are locked. - People. Everyone named in Immich, with their face and date of birth. Untick anyone you want to leave off. New people you add to Immich later are ticked automatically.
- Groups: create groups such as Close family, Wider family, Friend group 1. One person can be in several. Filter by a group, or tick/untick a whole group at once.
- No date of birth: listed at the top, with a link to fix each one in Immich. Click × to hide anyone who will never have one (or Hide all); they move to a collapsed list at the bottom, with Show again.
- Calendar. Choose the options (title, year, photos per month, Monday- or Sunday-first weeks, ages, cover, favourites first, months without birthdays, album prefix, print format) and click Generate calendar. A progress bar shows what it’s doing (“Downloading March photos… 4/6”).
- Review & finalise. Click Review & finalise (or any month in the preview) to page through the calendar exactly as it will print:
- Click any photo on the page (or ↻ Next under it) to cycle to the next photo of the same birthday person, or the next album photo or favourite. Keep clicking to go round them all.
- ✥ Adjust opens a move-and-zoom editor for that photo, shaped like its slot on the page: drag to move the photo in its frame, scroll or use the slider to zoom in (up to 3×) on someone’s face, Reset to undo. The framing is used in the preview and every export, and stays with the photo if it moves slot.
- 🔀 Reshuffle all picks new photos for the whole month; 📌 pins a photo so reshuffles keep it; ⇄ picks a replacement from a list. Photos you cycle, pick or adjust are pinned automatically.
- ✓ Looks good approves the month and moves on to the next. The month chips across the top show what’s approved; ← → also move between months.
- When all 12 months are approved, Finalise calendar unlocks the export options.
Changing a month’s photos un-approves that month; changing an option or regenerating means finalising again (changing the print format also clears every approval, because every page changes). Pinning alone doesn’t.
Everything is saved per year in
/config/calendars/<year>.json, so you can come back later. Update calendar keeps your choices for any month whose birthdays haven’t changed; Start fresh re-picks everything except pinned photos. - Export (after finalising). Downloads appear in the list and are kept in
/output, named likefamily-calendar-2027-20261129-201500.pdf.
5. Printing
A4 portrait (home or any printer)
- Print the PDF at A4, 100% / actual size, not “fit to page”.
- Printing the HTML from a browser instead? Set Margins: None and turn Background graphics on.
A4 Double / A3 Double (middle binding)
Choose Print format → A4 Double or A3 Double on the Calendar page. Each month is two landscape pages that hang one above the other with the binding between them: photos on top, dates below (faces sit in the corner of each square, leaving room to write). The PDF has 26 pages: front cover, photo + dates page for each month, back cover.
Vistaprint (A4 Double / A3 Double)
Vistaprint’s wall calendars are built in their online designer, which doesn’t take a finished PDF. Export → Vistaprint upload pack makes a ZIP with:
00-cover.jpg … 12-December.jpg: the cover and each month’s photo page at 300 DPI with 3 mm bleed (A4: 3578 × 2550 px, A3: 5031 × 3578 px)faces/MM-DD Name.png: a round face for every birthday to drag onto its date in Vistaprint’s gridREADME.txt: step-by-step instructions and a birthday tick-list
YouLovePrint and Doxzoo
Export → UK print services makes a print-ready PDF for each, in A4 or A3 landscape: 26 single pages in reading order, 3 mm bleed on every edge, 20 mm kept clear at the wire binding, fonts embedded.
- YouLovePrint: Calendars → Wall Calendars, A4 or A3 landscape, 26 pages, wiro binding.
- Doxzoo: Calendar Printing, A4 or A3 landscape, double sided (2 pages per month), 26 pages.
Always check the printer’s online proof before paying: make sure each photo page sits above its dates page the right way up. Colours are RGB; both printers convert to CMYK, so very bright colours may print slightly duller.
Double-format and print-service exports use Immich’s full-size images (scaled to 3000 px for A4 and 4200 px for A3) so the large photos stay sharp. The A4 portrait layout uses Immich’s previews, like the original script.
6. Configuration reference
| Variable | Default | |
|---|---|---|
IMMICH_URL |
(none) | Immich address. Overrides the Settings page. |
IMMICH_API_KEY |
(none) | Immich API key. Overrides the Settings page. Never logged. |
PORT |
8080 |
Port the web app listens on inside the container. |
PUID / PGID |
99 / 100 |
User and group the app runs as (Unraid’s nobody:users). The container starts as root only to fix the ownership of /config and /output, then drops to this user. |
TZ |
Europe/London |
Time zone, used for export timestamps. |
LOG_LEVEL |
info |
debug, info, warning or error. |
| Path | Contents |
|---|---|
/config/settings.json |
Immich URL, API key, self-signed option (mode 600) |
/config/groups.json |
Your people groups |
/config/calendars/<year>.json |
Selected people, options and every month’s photo choices and pins |
/config/cache/ |
Downloaded faces and photos, keyed by Immich ID. Safe to delete. |
/output/ |
Exports |
The image has a HEALTHCHECK on /healthz, runs as a non-root user, and is built for linux/amd64 and linux/arm64. The JSON API is documented at /api/docs.
7. Command-line tool
The original script still works on its own with just Python 3.8+ (no extra packages) for the A4 portrait calendar:
python3 immich_calendar.py --url http://192.168.1.20:2283 --key YOUR_KEY \
--year 2027 --title "The Smith Family" --pdf
python3 immich_calendar.py --help
8. Development
uv venv -p 3.12 .venv && uv pip install -p .venv -r requirements-dev.txt
.venv/bin/python -m pytest -q # unit + API + page tests
.venv/bin/python tests/mock_immich.py --port 2283 # fake Immich with test people and photos
CONFIG_DIR=./config OUTPUT_DIR=./output .venv/bin/python -m immichcal.web # http://localhost:8080
PDF and image tests run when Chrome or Chromium is installed and are skipped otherwise.
Container:
docker build --target test . # full test suite inside the image
docker build --platform linux/amd64 -t immich-family-calendar:dev .
python tests/e2e_container.py --image immich-family-calendar:dev # image vs. the mock Immich
With Podman add --format docker (otherwise the HEALTHCHECK is dropped) and always pass --platform. After an amd64 cross-build, Podman’s cached base image is amd64 and later builds silently follow it.
The end-to-end script starts the mock, runs the image, generates and exports, and checks the PDF has 13 A4 pages, that every face is on the right date, the A3 Doxzoo PDF size, the Vistaprint pack and that the API key never appears in the logs.
Layout:
| Path | |
|---|---|
immichcal/client.py |
Read-only Immich API client |
immichcal/selection.py |
Photo selection (group shots, round-robin, favourites, albums, pins) |
immichcal/render.py |
The original A4 portrait layout (CSS unchanged) |
immichcal/render_double.py |
A4/A3 Double layouts and Vistaprint images |
immichcal/builder.py |
Load people, plan months, download, render |
immichcal/web/ |
FastAPI app, background jobs, pages, exports |
tests/mock_immich.py |
Fake Immich (v3 API shapes) used by the tests |
Test family and demo Immich: tools/testdata/generate_family.py makes the fictional family’s photos with Gemini (key GEMINI_API_KEY in .env; the photos are already committed, so you only need it to change them). podman compose -f demo/immich/compose.yml up -d then python tools/testdata/seed_immich.py gives a real Immich v3.3.5 on http://localhost:2284 full of them, with faces found by Immich itself and names and birthdays set. python tools/docs/screenshots.py refreshes the guide’s screenshots from a running app.
CI: .gitea/workflows/ci.yml runs the tests and builds the image on every push to the Gitea repo; pushes to main are then deployed on tower (deploy/tower.sh): it replaces the immich-family-calendar container (port 8095, /mnt/user/appdata/immich-family-calendar), finds the running Immich server container and connects to it (by name on its custom network, or through its published port on the default bridge), waits for the healthcheck and runs the app’s Immich connection test. The Immich key comes from the repository secret IMMICH_API_KEY (Settings → Actions → Secrets). .github/workflows/publish.yml publishes the multi-arch image to GHCR when a v*.*.* tag is pushed (:1.2.3, :1.2, :1, :latest), or :edge when run by hand.
9. Troubleshooting
| Problem | Fix |
|---|---|
| “Immich rejected the API key” | The key is wrong, revoked or missing a permission. Make a new one (see step 1). |
| “Could not reach Immich at …” | Check the URL from inside the container’s network. localhost means the calendar container itself; use the Unraid IP or put both containers on one network. |
| A month is empty | No photos of that month’s birthday people were found. Check faces are tagged in Immich, or make a Calendar <year> - <Month> album. |
| Someone is missing | They need a name and a date of birth in Immich, and must be ticked on the People page. People hidden in Immich never appear in the app; unhide them in Immich to use them. |
| Album month ignored | The album name must be the prefix (default Calendar <year>) followed by the month, e.g. Calendar 2027 - March, Calendar 2027 Mar or Calendar 2027 - 03. |
| PDF looks different from the preview | Fonts and images are embedded in exports; regenerate if you changed options after exporting. |
License
MIT. The test family’s photos in tests/assets/family are AI-generated and show no real people.