diff --git a/.env.example b/.env.example index 2e6a065..2be6f9d 100644 --- a/.env.example +++ b/.env.example @@ -2,12 +2,15 @@ # # Copy to .env and fill in. Never commit the real file. # Everything below the first block is optional: Klarbild starts, and the print -# studio works, with nothing but DATABASE_URL, SESSION_SECRET and ENCRYPTION_KEY. +# studio works, with nothing but a database, SESSION_SECRET and ENCRYPTION_KEY. # ───────────────────────────────────────────────────────────────────────────── # 1. The minimum — this is all a print-only instance needs # ───────────────────────────────────────────────────────────────────────────── +# The compose files build DATABASE_URL from DB_PASSWORD, so with Docker you set +# only the password here. Running from source, set DATABASE_URL yourself instead. +DB_PASSWORD=CHANGEME DATABASE_URL=postgres://klarbild:CHANGEME@db:5432/klarbild # Signs the session cookie. Any long random string. @@ -43,6 +46,12 @@ KLARBILD_TZ=Europe/Berlin PORT=4321 +# How many reverse proxies sit in front of this instance. The rate limiter reads +# the client address that many hops from the right of X-Forwarded-For, so a wrong +# number here lets a client either spoof its address or share someone else's +# limit. One proxy (Caddy, nginx, Traefik, Coolify) is the default. +TRUSTED_PROXIES=1 + # ───────────────────────────────────────────────────────────────────────────── # 2. First start # ───────────────────────────────────────────────────────────────────────────── @@ -111,9 +120,6 @@ S3_ACCESS_KEY= S3_SECRET_KEY= S3_FORCE_PATH_STYLE=true -# ───────────────────────────────────────────────────────────────────────────── -# 9. Optional -# ───────────────────────────────────────────────────────────────────────────── -# A webhook that gets a POST when a job finishes — for n8n and the like. - -N8N_WEBHOOK_URL= +# A webhook that fires when a job finishes — for n8n and the like — is set in the +# admin area rather than here, because it is a per-instance setting rather than a +# secret. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8234936..f552cb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' cache: npm # `npm ci` needs the lockfile to match package.json exactly, which is the diff --git a/.gitignore b/.gitignore index 011cf7a..c9319e4 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ dist *.log uploads/ data/ +.DS_Store +coverage/ +*.tsbuildinfo diff --git a/Dockerfile b/Dockerfile index 7b994ab..1451756 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-bookworm-slim +FROM node:22-bookworm-slim WORKDIR /app ENV NODE_ENV=production PORT=4321 HOST=0.0.0.0 @@ -8,8 +8,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ python3 make g++ ca-certificates \ && rm -rf /var/lib/apt/lists/* -COPY package.json ./ -RUN npm install --no-audit --no-fund +# The lockfile comes first and `npm ci` honours it, so the image is built from +# the exact versions CI tested — not from whatever `^` resolved to today. +COPY package.json package-lock.json ./ +RUN npm ci --no-audit --no-fund COPY . . RUN npm run build diff --git a/README.md b/README.md index a5a578c..c09e5d6 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ nothing uploaded. ```bash git clone https://github.com/tillheidrich/klarbild.git && cd klarbild -cp .env.example .env # fill in three secrets, the file says which +cp .env.example .env # four values at the top; the file says which docker compose up -d docker compose logs app # your admin password is printed here, once ``` @@ -42,7 +42,7 @@ output is a PDF laid out in millimetres, not a scaled bitmap, so 30 × 40 cm is **Sheet layout.** Put several pictures on one sheet at 100 % with crop marks: corner marks (0.25 pt, outside the trim) or continuous lines. Equal sizes snap to an exact grid; mixed sizes go through a MaxRects packer. Bleed 0–10 mm. 19 paper -formats from A6 to A2 — including A3+ and photo paper 9 × 13 to 20 × 30, Letter +formats from A6 to A1 — including A3+ and photo paper 9 × 13 to 20 × 30, Letter and Legal — or a custom sheet. **Pictures bigger than the sheet, handled three ways.** A 20 × 30 cm print on A4 @@ -149,7 +149,7 @@ the two tools worth knowing. ## Contributing [klarbild-demo.heidrich-digital.de](https://klarbild-demo.heidrich-digital.de) is the product -page; its source is [klarbild-demo](https://git.heidrich-digital.de/till/klarbild-demo). +page. Issues and pull requests are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) for how the code is laid out and what the house style is. Security reports go to the diff --git a/docker-compose.full.yaml b/docker-compose.full.yaml index dc116b6..2807068 100644 --- a/docker-compose.full.yaml +++ b/docker-compose.full.yaml @@ -38,7 +38,6 @@ services: OPENROUTER_API_KEY: "${OPENROUTER_API_KEY:-}" TELEGRAM_BOT_TOKEN: "${TELEGRAM_BOT_TOKEN:-}" DELIVERY_DEFAULT_FOLDER: "${DELIVERY_DEFAULT_FOLDER:-klarbild}" - N8N_WEBHOOK_URL: "${N8N_WEBHOOK_URL:-}" # The database wins over these; they only apply until something is entered # under Admin → Email, so a fresh install can send mail straight away. diff --git a/docs/screenshots/mixed-sheet.png b/docs/screenshots/mixed-sheet.png deleted file mode 100644 index 22d338e..0000000 Binary files a/docs/screenshots/mixed-sheet.png and /dev/null differ diff --git a/docs/screenshots/sheet-preview.png b/docs/screenshots/sheet-preview.png deleted file mode 100644 index 8ef63d0..0000000 Binary files a/docs/screenshots/sheet-preview.png and /dev/null differ diff --git a/mcp/README.md b/mcp/README.md index 8de1e06..e4cb571 100644 --- a/mcp/README.md +++ b/mcp/README.md @@ -32,7 +32,7 @@ own tools) and then calls the Klarbild tools. - **process_images** — upload and process images (local paths or `data:` URLs). Give either `recipeId` (a preset) or `mode` (`each`/`compose`/`generate`) + options: `tasks` (`clean`/`cutout`/`format`/`contour`), `prompt_text`, `output_format` - (fixed, like `30x40`/`theframe`, **or custom**, `25x35` / `sticker5`), `output_ext` + (fixed, like `30x40`/`tv169`, **or custom**, `25x35` / `sticker5`), `output_ext` (`png`/`jpg`, omit = global default), `orientation`, `crop_mode`, `contour_mm`, `delivery_folder`, `delivery`. Returns the job ID. - **job_status** — query the status of a job (including finish time and error messages). diff --git a/mcp/klarbild-mcp.mjs b/mcp/klarbild-mcp.mjs index a140b8e..3080241 100644 --- a/mcp/klarbild-mcp.mjs +++ b/mcp/klarbild-mcp.mjs @@ -54,7 +54,7 @@ const TOOLS = [ tasks: { type: 'array', items: { type: 'string', enum: ['clean', 'cutout', 'format', 'contour'] }, description: 'Only for mode=each. Default: ["format"] if output_format is set.' }, prompt_text: { type: 'string', description: 'Description for compose/generate' }, - output_format: { type: 'string', description: 'Fixed: 30x40, A4, theframe, portrait916, keep … OR custom: "25x35" (=25×35 cm) or "sticker5" (=5×5 cm).' }, + output_format: { type: 'string', description: 'Fixed: 30x40, A4, tv169, portrait916, keep … OR custom: "25x35" (=25×35 cm) or "sticker5" (=5×5 cm).' }, output_ext: { type: 'string', enum: ['png', 'jpg'], description: 'File format. Omit = global default setting. JPG only without transparency.' }, orientation: { type: 'string', enum: ['portrait', 'landscape'] }, crop_mode: { type: 'string', enum: ['crop', 'extend'] }, diff --git a/migrations/004_modes_thumbs_storage_nas.sql b/migrations/004_modes_thumbs_storage_backup.sql similarity index 100% rename from migrations/004_modes_thumbs_storage_nas.sql rename to migrations/004_modes_thumbs_storage_backup.sql diff --git a/package.json b/package.json index d56cf35..c02ff86 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ ], "type": "module", "engines": { - "node": ">=20" + "node": ">=22.6" }, "scripts": { "dev": "astro dev", @@ -41,7 +41,6 @@ "@astrojs/node": "^9.1.3", "@astrojs/react": "^4.2.1", "@aws-sdk/client-s3": "^3.700.0", - "@aws-sdk/s3-request-presigner": "^3.700.0", "@fontsource/space-grotesk": "^5.1.0", "@fontsource/space-mono": "^5.1.0", "archiver": "^7.0.1", diff --git a/scripts/secret-scan.mjs b/scripts/secret-scan.mjs index 643bf20..5abb12e 100644 --- a/scripts/secret-scan.mjs +++ b/scripts/secret-scan.mjs @@ -38,9 +38,11 @@ const RULES = [ // Lines that are allowed to match: documentation of the shape of a secret, // and the example file, which is meant to show the names without the values. +// Lines that are allowed to match: documentation of the *shape* of a secret. +// Being a comment is deliberately not a free pass — a pasted `.env` fragment is +// usually commented out, and that is exactly the mistake worth catching. const ALLOW = [ - /example|placeholder|CHANGEME|your-|<[a-z]+>|openssl rand/i, - /^\s*(?:\/\/|#|--|\*)/, + /example|placeholder|CHANGEME|your-|<[a-z]+>|openssl rand|\.\.\.|xxxx/i, ]; let findings = 0; diff --git a/src/components/AdminApp.tsx b/src/components/AdminApp.tsx index 9ebf785..839f9ed 100644 --- a/src/components/AdminApp.tsx +++ b/src/components/AdminApp.tsx @@ -274,7 +274,6 @@ export default function AdminApp({ locale, dict }: { locale?: Locale; dict?: Dic
field('default_dpi', e.target.value)} />
field('concurrency', e.target.value)} />
-
field('cricut_sheet_cm', e.target.value)} />
setNt({ ...nt, name: e.target.value })} />
+
setNt({ ...nt, name: e.target.value })} />
diff --git a/src/components/PrintApp.tsx b/src/components/PrintApp.tsx index 9c2bb47..6dce585 100644 --- a/src/components/PrintApp.tsx +++ b/src/components/PrintApp.tsx @@ -413,7 +413,7 @@ export default function PrintApp({ locale, dict }: { locale?: Locale; dict?: Dic body: JSON.stringify({ src: c.src, crop: c.crop, wMm: s.w, hMm: s.h, dpi, ext, name: c.name, fit: c.fit, bg: c.bg }), }); if (!res.ok) { notify((await res.json().catch(() => ({}))).error || t('Failed.'), true); return; } - download(await res.blob(), filenameFromHeader(res.headers.get('Content-Disposition'), `bild.${ext}`)); + download(await res.blob(), filenameFromHeader(res.headers.get('Content-Disposition'), `image.${ext}`)); const real = res.headers.get('X-Klarbild-Real-Dpi'); notify(res.headers.get('X-Klarbild-Dpi-Ok') === '0' ? t('Downloaded — careful: the source only carries about {dpi} dpi.', { dpi: String(real) }) diff --git a/src/components/StudioApp.tsx b/src/components/StudioApp.tsx index 5e1d1cb..4ff5241 100644 --- a/src/components/StudioApp.tsx +++ b/src/components/StudioApp.tsx @@ -20,7 +20,7 @@ const FORMATS: { id: string; label: string; cm?: [number, number]; screen?: [num { id: 'A2', label: 'DIN A2', cm: [42, 59.4] }, { id: '20x20', label: '20 × 20 cm', cm: [20, 20] }, { id: '30x30', label: '30 × 30 cm', cm: [30, 30] }, - { id: 'theframe', label: 'The Frame (16:9)', screen: [3840, 2160] }, + { id: 'tv169', label: 'TV 16:9', screen: [3840, 2160] }, { id: 'portrait916', label: 'Portrait (9:16)', screen: [2160, 3840] }, { id: 'sticker', label: 'Sticker (custom size)', cm: [5, 5] }, { id: 'custom', label: 'Custom size (cm)' }, @@ -85,7 +85,7 @@ export default function StudioApp({ recipes, locale, dict }: { recipes: any[]; l const fmt = FORMATS.find((f) => f.id === format); const hasCutout = tasks.includes('cutout'); const hasFormat = tasks.includes('format'); - const theframeConflict = hasCutout && (format === 'theframe' || format === 'portrait916'); + const tvFormatConflict = hasCutout && (format === 'tv169' || format === 'portrait916'); // In compose/generate the size is always available (without the "Format" task). const showFormat = mode === 'each' ? hasFormat : true; const wantsFormat = mode === 'each' ? hasFormat : format !== 'keep'; @@ -220,7 +220,7 @@ export default function StudioApp({ recipes, locale, dict }: { recipes: any[]; l // "Custom size" needs a valid entry, otherwise the run cannot start. const freeFmtInvalid = wantsFormat && format === 'custom' && !parsedFmt.cm; const canRun = !busy && !freeFmtInvalid && ( - mode === 'each' ? (ready.length > 0 && tasks.length > 0 && !theframeConflict && !(tasks.includes('contour') && !hasCutout)) + mode === 'each' ? (ready.length > 0 && tasks.length > 0 && !tvFormatConflict && !(tasks.includes('contour') && !hasCutout)) : mode === 'compose' ? (ready.length >= 1 && desc.trim().length > 0) : desc.trim().length > 0 ); @@ -373,7 +373,7 @@ export default function StudioApp({ recipes, locale, dict }: { recipes: any[]; l {freeFmtInvalid &&
{t('Enter a size, for example “25x35” or “5”.')}
} )} - {theframeConflict &&
{t('Cut out + The Frame makes no sense — pick one.')}
} + {tvFormatConflict &&
{t('Cut out + TV 16:9 makes no sense — pick one.')}
} {effCm && (
@@ -388,7 +388,7 @@ export default function StudioApp({ recipes, locale, dict }: { recipes: any[]; l
)} {targetPx && mode !== 'generate' && crop === 'extend' && ( -
{t('“Extend” produces more scene around the subject (outpainting) instead of cropping — made for The Frame.')}
+
{t('“Extend” produces more scene around the subject (outpainting) instead of cropping — made for wide TV frames.')}
)} )} diff --git a/src/lib/format.ts b/src/lib/format.ts index 129af8d..2d26682 100644 --- a/src/lib/format.ts +++ b/src/lib/format.ts @@ -16,7 +16,7 @@ const CM: Record = { // Pure screen sizes (fixed pixels, no cm/dpi) const SCREEN: Record = { - theframe: [3840, 2160], // 16:9 landscape + tv169: [3840, 2160], // 16:9 landscape portrait916: [2160, 3840], // 9:16 portrait }; @@ -39,7 +39,7 @@ export function resolveDimensions(input: ResolveInput): Dimensions | null { if (format in SCREEN) { const [w, h] = SCREEN[format]; - return { w, h, label: format === 'theframe' ? 'The Frame' : 'Portrait' }; + return { w, h, label: format === 'tv169' ? 'TV 16:9' : 'Portrait' }; } let cm: [number, number] | undefined; diff --git a/src/lib/naming.ts b/src/lib/naming.ts index 33ce5cc..c37cb91 100644 --- a/src/lib/naming.ts +++ b/src/lib/naming.ts @@ -3,7 +3,7 @@ // renaming, tests). // // Scheme: `YYYY-MM-DD_HHMMSS___.` -// 2026-08-20_143207_portrait-badge_the-frame_a3f9.jpg +// 2026-08-20_143207_portrait-badge_tv169_a3f9.jpg // // Why: the timestamp comes first, so every file listing — delivery target, // Finder, backup mirror — sorts chronologically by itself. The name becomes @@ -89,7 +89,7 @@ export interface NameParts { /** * Unique, chronologically sortable file name: * `YYYY-MM-DD_HHMMSS___.` - * e.g. `2026-08-20_143207_portrait_the-frame_a3f9.png` + * e.g. `2026-08-20_143207_portrait_tv169_a3f9.png` * * Why like this: the name begins with the timestamp, so every file listing * (delivery target, Finder, backup mirror) sorts chronologically by itself. It @@ -142,7 +142,7 @@ export function newNameFor(it: { id: string; filename: string | null; created_at /** Format key for the file name (from the output_format). */ export function formatToken(outputFormat: string | undefined): string { if (!outputFormat || outputFormat === 'keep') return 'original'; - if (outputFormat === 'theframe') return 'the-frame'; + if (outputFormat === 'tv169') return 'tv169'; if (outputFormat === 'portrait916') return 'portrait916'; return outputFormat.toLowerCase(); // 30x40, a4, sticker, … } diff --git a/src/lib/paper.ts b/src/lib/paper.ts index 2bb543a..1b54327 100644 --- a/src/lib/paper.ts +++ b/src/lib/paper.ts @@ -128,7 +128,7 @@ export const PHOTO_SIZES: PhotoSize[] = [ { id: 'C70x100', label: 'Bookmark 7 × 21 cm', w: 70, h: 210, group: 'Cards' }, // --- Aspect ratios as a print size (worked out on 30 cm) --- - { id: 'W16x9', label: '16:9 "The Frame" (30 cm wide)', w: 300, h: 168.75, group: 'Aspect ratio' }, + { id: 'W16x9', label: '16:9 TV 16:9 (30 cm wide)', w: 300, h: 168.75, group: 'Aspect ratio' }, { id: 'W9x16', label: '9:16 portrait (30 cm tall)', w: 168.75, h: 300, group: 'Aspect ratio' }, { id: 'W21x9', label: '21:9 cinema (30 cm wide)', w: 300, h: 128.57, group: 'Aspect ratio' }, { id: 'W2x1', label: '2:1 panorama (30 cm wide)', w: 300, h: 150, group: 'Aspect ratio' }, diff --git a/src/lib/seed.ts b/src/lib/seed.ts index b25d030..88e6903 100644 --- a/src/lib/seed.ts +++ b/src/lib/seed.ts @@ -85,7 +85,7 @@ async function seedRecipes(): Promise { await R('Clean up only', ['clean'], 'keep', 'landscape', { is_default: true }); await R('Poster 30×40', ['clean', 'format'], '30x40', 'portrait'); - await R('TV frame (16:9)', ['clean', 'format'], 'theframe', 'landscape'); + await R('TV frame (16:9)', ['clean', 'format'], 'tv169', 'landscape'); await R('Sticker 5 cm', ['clean', 'cutout', 'format', 'contour'], 'sticker5', 'landscape', { contour_mm: 3 }); } diff --git a/src/locales/de.json b/src/locales/de.json index e9e9f81..409974a 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -1,5 +1,6 @@ { "(enforced)": "(erzwungen)", + "+ Alt.": "+ Alt.", ".md off": ".md aus", ".md on": ".md an", "0 = unlimited.": "0 = unbegrenzt.", @@ -10,7 +11,7 @@ "1 · Edit an image": "1 · Bild bearbeiten", "13 × 18 cm → measured 130.1 × 180.1 mm": "13 × 18 cm → gemessen 130,1 × 180,1 mm", "150 — draft": "150 — Entwurf", - "16:9 \"The Frame\" (30 cm wide)": "16:9 „The Frame\" (30 cm breit)", + "16:9 TV (30 cm wide)": "16:9 TV 16:9 (30 cm breit)", "18 Aug 2026": "18.08.2026", "19 Aug 2026": "19.08.2026", "1:1 square (30 cm)": "1:1 quadratisch (30 cm)", @@ -37,6 +38,7 @@ "3:4 (30 cm tall)": "3:4 (30 cm hoch)", "4 · Library, folders, alternatives & keep editing": "4 · Bibliothek, Ordner, Alternativen & Weiterbearbeiten", "4.5 × 6 cm": "4,5 × 6 cm", + "465 = SSL · 587 = STARTTLS": "465 = SSL · 587 = STARTTLS", "4:3 (30 cm wide)": "4:3 (30 cm breit)", "4:5 Instagram (30 cm tall)": "4:5 Instagram (30 cm hoch)", "5 · Print — exact sizes and crop marks (without AI)": "5 · Drucken — exakte Maße und Schnittmarken (ohne KI)", @@ -92,10 +94,10 @@ "Exact sizes instead of “roughly”. A passport photo is 35 × 45 mm, a frame is 13 × 18 cm. The tool computes in millimetres and produces a PDF whose page is exactly the sheet size and in which every image is exactly its target size. When printing, choose “Actual size / 100%” — not “fit to page”.": "Exakte Maße statt „ungefähr\". Ein Passbild ist 35 × 45 mm, ein Rahmen 13 × 18 cm. Das Werkzeug rechnet in Millimetern und erzeugt ein PDF, dessen Seite exakt das Bogenmaß hat und in dem jedes Bild exakt sein Zielmaß hat. Beim Drucken „Tatsächliche Größe / 100 %\" wählen — nicht „an Seitengröße anpassen\".", "Failed jobs are now red in the overview (they used to be green) and carry the reason. Fixed: the “Sticker 5 cm” preset recipe led nowhere (“Unknown format: sticker5”).": "Fehlgeschlagene Aufträge sind jetzt rot in der Übersicht (vorher grün) und tragen den Grund. Behoben: das Preset „Sticker 5 cm\" lief ins Leere („Unbekanntes Format: sticker5\").", "Faster loading: the full view and the preview come as a small JPG (about 5× smaller), tiles load a thumbnail first; missing thumbnails can be generated afterwards with a button.": "Schnelleres Laden: Vollbild/Vorschau kommt als kleines JPG (~5× kleiner), Kacheln laden zuerst ein Thumbnail; fehlende Thumbnails per Knopf nachgenerierbar.", - "File names are unique. Every result is called YYYY-MM-DD_HHMMSS_subject_format_shortid, for example 2026-08-20_143207_ada-badge_the-frame_a3f9.jpg. Because date and time come first, every file listing — the delivery target, the backup mirror, the file manager — sorts chronologically by itself. The short id at the end comes from the image's id: two images can no longer overwrite each other on delivery, even if you generate the same subject in the same format twice on one day. (Before 21 Aug 2026 that was different — the first image was lost in such a case. Under Admin → File names the existing library can be renamed after the fact.)": "Dateinamen sind eindeutig. Jedes Ergebnis heißt JJJJ-MM-TT_HHMMSS_motiv_format_kürzel, also z. B. 2026-08-20_143207_ada-badge_the-frame_a3f9.jpg. Weil Datum und Uhrzeit vorn stehen, sortiert jede Dateiliste — Auslieferungsziel, Spiegel, Dateimanager — von allein chronologisch. Das Kürzel am Ende stammt aus der Kennung des Bildes: zwei Bilder können sich beim Ausliefern nicht mehr überschreiben, auch wenn du am selben Tag zweimal dasselbe Motiv im selben Format erzeugst. (Vor dem 21.08.2026 war das anders — dort ging in so einem Fall das erste Bild verloren. Unter Admin → Dateinamen lässt sich die vorhandene Bibliothek nachträglich umbenennen.)", + "File names are unique. Every result is called YYYY-MM-DD_HHMMSS_subject_format_shortid, for example 2026-08-20_143207_ada-badge_tv169_a3f9.jpg. Because date and time come first, every file listing — the delivery target, the backup mirror, the file manager — sorts chronologically by itself. The short id at the end comes from the image's id: two images can no longer overwrite each other on delivery, even if you generate the same subject in the same format twice on one day. (Before 21 Aug 2026 that was different — the first image was lost in such a case. Under Admin → File names the existing library can be renamed after the fact.)": "Dateinamen sind eindeutig. Jedes Ergebnis heißt JJJJ-MM-TT_HHMMSS_motiv_format_kürzel, also z. B. 2026-08-20_143207_ada-badge_tv169_a3f9.jpg. Weil Datum und Uhrzeit vorn stehen, sortiert jede Dateiliste — Auslieferungsziel, Spiegel, Dateimanager — von allein chronologisch. Das Kürzel am Ende stammt aus der Kennung des Bildes: zwei Bilder können sich beim Ausliefern nicht mehr überschreiben, auch wenn du am selben Tag zweimal dasselbe Motiv im selben Format erzeugst. (Vor dem 21.08.2026 war das anders — dort ging in so einem Fall das erste Bild verloren. Unter Admin → Dateinamen lässt sich die vorhandene Bibliothek nachträglich umbenennen.)", "Finish time in the job: the queue and the job show when it was done.": "Endzeit im Auftrag: Warteschlange und Auftrag zeigen, wann er fertig wurde.", - "Fixed: images overwrote each other on the delivery target. Generating the same subject in the same format twice on one day — two badges, say — produced the same file name twice (2026-07-23_portrait_the-frame.png). On delivery the second image then silently replaced the first. That can no longer happen.": "Behoben: Bilder haben sich am Auslieferungsziel gegenseitig überschrieben. Wer am selben Tag zweimal dasselbe Motiv im selben Format erzeugt hat — etwa zwei Badges —, bekam zweimal denselben Dateinamen (2026-07-23_portrait_the-frame.png). Beim Ausliefern ersetzte das zweite Bild dann stillschweigend das erste. Das kann jetzt nicht mehr passieren.", - "Fixed: print files were all called the same. Two sheets on the same day were both 2026-09-01_druckbogen.pdf — in the same folder the second overwrote the first. Now it is 2026-09-01_143207_druck-9-teile_a4_4eca.pdf: date, time to the second, what is on the sheet, the paper and a short id. The short id belongs to the history entry — so you can see which print was which file. Single images are now named after their subject.": "Behoben: Druckdateien hießen alle gleich. Zwei Bogen am selben Tag waren beide 2026-09-01_druckbogen.pdf — im selben Ordner überschrieb der zweite den ersten. Jetzt 2026-09-01_143207_druck-9-teile_a4_4eca.pdf: Datum, Uhrzeit auf die Sekunde, was auf dem Bogen liegt, das Papier und ein Kürzel. Das Kürzel gehört zum Verlaufseintrag — du siehst also, welcher Druck welche Datei war. Einzelbilder heißen jetzt nach ihrem Motiv.", + "Fixed: images overwrote each other on the delivery target. Generating the same subject in the same format twice on one day — two badges, say — produced the same file name twice (2026-07-23_portrait_tv169.png). On delivery the second image then silently replaced the first. That can no longer happen.": "Behoben: Bilder haben sich am Auslieferungsziel gegenseitig überschrieben. Wer am selben Tag zweimal dasselbe Motiv im selben Format erzeugt hat — etwa zwei Badges —, bekam zweimal denselben Dateinamen (2026-07-23_portrait_tv169.png). Beim Ausliefern ersetzte das zweite Bild dann stillschweigend das erste. Das kann jetzt nicht mehr passieren.", + "Fixed: print files were all called the same. Two sheets on the same day were both 2026-09-01_print-sheet.pdf — in the same folder the second overwrote the first. Now it is 2026-09-01_143207_print-9-pieces_a4_4eca.pdf: date, time to the second, what is on the sheet, the paper and a short id. The short id belongs to the history entry — so you can see which print was which file. Single images are now named after their subject.": "Behoben: Druckdateien hießen alle gleich. Zwei Bogen am selben Tag waren beide 2026-09-01_druckbogen.pdf — im selben Ordner überschrieb der zweite den ersten. Jetzt 2026-09-01_143207_druck-9-teile_a4_4eca.pdf: Datum, Uhrzeit auf die Sekunde, was auf dem Bogen liegt, das Papier und ein Kürzel. Das Kürzel gehört zum Verlaufseintrag — du siehst also, welcher Druck welche Datei war. Einzelbilder heißen jetzt nach ihrem Motiv.", "Fixed: the crop showed the image distorted. The frame in the crop window did not have the target aspect ratio, which squeezed the image into it (measured: 8.3% too wide). Frame and image now both compute from the same ratio.": "Behoben: Der Zuschnitt zeigte das Bild verzerrt. Der Rahmen im Zuschnitt-Fenster hatte nicht das Ziel-Seitenverhältnis, dadurch wurde das Bild hineingequetscht (gemessen: 8,3 % zu breit). Rahmen und Bild rechnen jetzt beide mit demselben Verhältnis.", "Fixed: “I cannot move the image.” Technically you could, but with the frame fully filled the crop sits against the stop in one direction — dragging did nothing there. It now says which way the image can still move; double-tap zooms, the arrow keys nudge, and the zoom slider shows its factor.": "Behoben: „Ich kann das Bild nicht verschieben.\" Technisch ging es, aber bei voll ausgefülltem Rahmen sitzt der Ausschnitt in einer Richtung am Anschlag — Ziehen bewirkte dort nichts. Jetzt steht dabei, wohin sich das Bild noch bewegen lässt; Doppeltipp zoomt, Pfeiltasten schieben, und der Zoomregler zeigt seinen Faktor.", "Fixed: a new password now also ends every sign-in that is still open. An existing session used to stay valid for up to 30 days — so resetting your password because somebody else had got in did nothing for you.": "Behoben: Ein neues Passwort beendet jetzt auch alle noch offenen Anmeldungen. Vorher blieb eine bestehende Sitzung bis zu 30 Tage gültig — wer sein Passwort zurücksetzte, weil jemand anderes hineingekommen war, hatte davon also nichts.", @@ -148,14 +150,14 @@ "Share: in the library, tap Share — for one image or for several selected ones at once. The result is a link that someone without a Klarbild account can open too; from there the image can be downloaded at full resolution.": "Teilen: In der Bibliothek auf Teilen tippen — einzeln oder für mehrere markierte Bilder auf einmal. Es entsteht ein Link, den auch jemand ohne Klarbild-Konto öffnen kann; von dort lässt sich das Bild in voller Auflösung herunterladen.", "Staying safe: every link expires by itself (30 days by default), can be switched off at any time and protected with a passphrase if you want. Send the passphrase separately from the link — otherwise it is of no use.": "Sicher bleiben: Jeder Link läuft von selbst ab (Standard 30 Tage), lässt sich jederzeit abschalten und auf Wunsch mit einem Zugangswort schützen. Das Wort schickst du dann getrennt vom Link — sonst nützt es nichts.", "Storage management: thumbnails, deleting sources, an automatic retention period.": "Speicherverwaltung: Vorschaubilder, Quellen löschen, automatische Aufbewahrungsfrist.", + "TV 16:9 “Extend”: generate more scene around the subject (outpainting) instead of only cropping.": "TV 16:9 „Erweitern\": Szene rund ums Motiv weiter generieren (Outpainting) statt nur zuschneiden.", + "TV 16:9 now delivers automatically into the folder “TV-Backgrounds” on the target.": "TV 16:9 liefert jetzt automatisch in die Galerie „TV-Backgrounds\".", "Telegram & MCP keep up: the Telegram bot and the MCP server (for assistants) now know the selectable file format and the custom sizes too — whichever way you start a job.": "Telegram & MCP ziehen mit: Der Telegram-Bot und der MCP-Server (für Assistenten) kennen jetzt ebenfalls das wählbare Dateiformat und die eigenen Formate — egal, worüber du einen Auftrag startest.", "Telegram entirely button-driven: a permanent keyboard & menu — Edit, Combine, “✨ New image”, Keep editing, with no commands at all.": "Telegram komplett knopfbasiert: Dauertastatur & Menü — Bearbeiten, Kombinieren, „✨ Neues Bild\", Weiterbearbeiten, ganz ohne Befehle.", - "The Frame “Extend”: generate more scene around the subject (outpainting) instead of only cropping.": "The Frame „Erweitern\": Szene rund ums Motiv weiter generieren (Outpainting) statt nur zuschneiden.", - "The Frame now delivers automatically into the folder “TheFrame-Backgrounds” on the target.": "The Frame liefert jetzt automatisch in die Galerie „TheFrame-Backgrounds\".", "The area is now called “Print” (it was “Passport photos”) — it does far more than passport photos, after all. Old links redirect automatically.": "Der Bereich heißt jetzt „Drucken\" (vorher „Passbilder\") — er kann ja weit mehr als Passbilder. Alte Verweise leiten automatisch weiter.", "The delivery target gets exactly your format: what is delivered is now exactly the file format you set — globally in the admin settings or per job in the studio (PNG or JPG). No more forced conversion. Cut-out subjects always stay PNG. (The images that had “disappeared” in the meantime were there the whole time, by the way — it was the sort order in the target’s web interface.)": "Das Auslieferungsziel bekommt genau dein Format: Ausgeliefert wird jetzt exakt das Dateiformat, das du eingestellt hast — global in den Admin-Einstellungen oder pro Auftrag im Studio (PNG oder JPG). Keine erzwungene Umwandlung mehr. Freigestellte Motive bleiben immer PNG. (Die zwischenzeitlich „verschwundenen\" Bilder waren übrigens die ganze Zeit da — es lag an der Sortierung in der Weboberfläche des Ziels.)", "The file format can be chosen: globally in the admin settings (default file format PNG/JPG) and per conversion in the studio (default / PNG / JPG). JPG only without transparency.": "Dateiformat wählbar: global in den Admin-Einstellungen (Standard-Dateiformat PNG/JPG) und pro Umwandlung im Studio (Standard / PNG / JPG). JPG nur ohne Transparenz.", - "The new name: 2026-08-20_143207_ada-badge_the-frame_a3f9.jpg — date, time to the second, subject, format and a short id. Because the timestamp comes first, every file listing sorts chronologically by itself — on the delivery target, in the file manager, on the backup mirror. The short id comes from the image's id and is therefore guaranteed to be unique.": "Der neue Name: 2026-08-20_143207_ada-badge_the-frame_a3f9.jpg — also Datum, Uhrzeit auf die Sekunde, Motiv, Format und ein kurzes Kürzel. Weil der Zeitstempel vorn steht, sortiert jede Dateiliste von allein chronologisch — am Auslieferungsziel, im Dateimanager, auf dem Spiegel. Das Kürzel stammt aus der Bild-Kennung und ist damit garantiert eindeutig.", + "The new name: 2026-08-20_143207_ada-badge_tv169_a3f9.jpg — date, time to the second, subject, format and a short id. Because the timestamp comes first, every file listing sorts chronologically by itself — on the delivery target, in the file manager, on the backup mirror. The short id comes from the image's id and is therefore guaranteed to be unique.": "Der neue Name: 2026-08-20_143207_ada-badge_tv169_a3f9.jpg — also Datum, Uhrzeit auf die Sekunde, Motiv, Format und ein kurzes Kürzel. Weil der Zeitstempel vorn steht, sortiert jede Dateiliste von allein chronologisch — am Auslieferungsziel, im Dateimanager, auf dem Spiegel. Das Kürzel stammt aus der Bild-Kennung und ist damit garantiert eindeutig.", "The same image at two sizes? Tap Duplicate — the image appears a second time in the list and gets its own size there. No more renaming and uploading again.": "Dasselbe Bild in zwei Maßen? Duplizieren antippen — das Bild erscheint ein zweites Mal in der Liste und bekommt dort sein eigenes Maß. Kein Umbenennen und erneutes Hochladen mehr.", "The time is local time, not UTC. An image made at 00:30 now carries the right date instead of the previous day's.": "Uhrzeit in deutscher Zeit, nicht in UTC. Ein Bild von 0:30 Uhr trägt jetzt das richtige Datum und nicht mehr das des Vortags.", "Thumbnails for the library (fast & frugal).": "Vorschaubilder für die Bibliothek (schnell & sparsam).", @@ -175,6 +177,7 @@ "API token for external/programmatic access (for example Klarbild MCP: “take these images and process them”).": "API-Token für externen/programmatischen Zugriff (z. B. Klarbild-MCP: „nimm diese Bilder und verarbeite sie\").", "API token generated.": "API-Token erzeugt.", "Access & limits": "Zugang & Grenzen", + "Account": "Konto", "Add a note": "Dazu schreiben", "Add a white sticker border (only together with Cut out).": "Weißen Stickerrand anlegen (nur mit Freistellen).", "Add target": "Ziel hinzufügen", @@ -182,6 +185,8 @@ "Additional target": "Zusätzliches Ziel", "Address removed.": "Adresse entfernt.", "Address saved.": "Adresse gespeichert.", + "Admin": "Admin", + "Admin · Klarbild": "Admin · Klarbild", "Admin → Email": "Admin → E-Mail", "Admins always see everything. “Own only”: everyone sees only the images they generated themselves.": "Admins sehen immer alles. „Nur eigene\": jede/r sieht ausschließlich die selbst erzeugten Bilder.", "Again": "Erneut", @@ -219,6 +224,7 @@ "Back up all images": "Alle Bilder sichern", "Backing up to the mirror … (may take a while)": "Sichere auf den Sicherungsspiegel … (kann dauern)", "Backing up … (may take a while)": "Sichere … (kann dauern)", + "Backup": "Sicherung", "Backup mirror": "Zweite Sicherung", "Backup mirror (second copy)": "Sicherungsspiegel (zweite Sicherung)", "Backup off": "Backup aus", @@ -251,6 +257,9 @@ "Change passphrase": "Wort ändern", "Change validity": "Gültigkeit ändern", "Change validity …": "Gültigkeit ändern …", + "Changelog": "Änderungen", + "Changelog · Klarbild": "Änderungen · Klarbild", + "Chat {id}": "Chat {id}", "Check library": "Bibliothek prüfen", "Checking connection …": "Prüfe Verbindung …", "Checking file names …": "Prüfe Dateinamen …", @@ -262,10 +271,10 @@ "Choose a way, otherwise the image is left out.": "Wähle einen Weg, sonst bleibt das Bild außen vor.", "Choose images": "Bilder wählen", "Choose sheet": "Bogen wählen", - "Choose the final size for each image. Every format from AI generation is here — biometric passport photo 35 × 45 mm, 2 × 3 to 6 × 9 cm, 9 × 13 to 24 × 30, poster and frame sizes 30 × 40 to 70 × 100, squares, DIN A6–A2 and the aspect ratios (16:9 “The Frame”, 9:16, 3:2, 4:3, 5:4) — or a custom size: 12x15 (cm), 35x45mm, 5 (= 5 × 5 cm) or 4:3/15 (ratio 4:3, longer edge 15 cm).": "Je Bild das Endmaß wählen. Es sind alle Formate der KI-Generierung da — biometrisches Passbild 35 × 45 mm, 2 × 3 bis 6 × 9 cm, 9 × 13 bis 24 × 30, Poster- und Rahmenmaße 30 × 40 bis 70 × 100, Quadrate, DIN A6–A2 und die Seitenverhältnisse (16:9 „The Frame\", 9:16, 3:2, 4:3, 5:4) — oder Eigenes Maß: 12x15 (cm), 35x45mm, 5 (= 5 × 5 cm) oder 4:3/15 (Verhältnis 4:3, längere Kante 15 cm).", + "Choose the final size for each image. Every format from AI generation is here — biometric passport photo 35 × 45 mm, 2 × 3 to 6 × 9 cm, 9 × 13 to 24 × 30, poster and frame sizes 30 × 40 to 70 × 100, squares, DIN A6–A2 and the aspect ratios (16:9 TV, 9:16, 3:2, 4:3, 5:4) — or a custom size: 12x15 (cm), 35x45mm, 5 (= 5 × 5 cm) or 4:3/15 (ratio 4:3, longer edge 15 cm).": "Je Bild das Endmaß wählen. Es sind alle Formate der KI-Generierung da — biometrisches Passbild 35 × 45 mm, 2 × 3 bis 6 × 9 cm, 9 × 13 bis 24 × 30, Poster- und Rahmenmaße 30 × 40 bis 70 × 100, Quadrate, DIN A6–A2 und die Seitenverhältnisse (16:9 TV 16:9, 9:16, 3:2, 4:3, 5:4) — oder Eigenes Maß: 12x15 (cm), 35x45mm, 5 (= 5 × 5 cm) oder 4:3/15 (Verhältnis 4:3, längere Kante 15 cm).", "Choose the paper size: DIN A6–A2 including A3+ (329 × 483 mm), photo paper cuts 9 × 13 to 20 × 30, US Letter/Legal — or a paper size of your own.": "Papierformat wählen: DIN A6–A2 inklusive A3+ (329 × 483 mm), Fotopapier-Zuschnitte 9 × 13 bis 20 × 30, US Letter/Legal — oder ein eigenes Papiermaß.", "Choose the quality and where it goes (library, delivery target or both), then Start.": "Qualität und Ziel (Bibliothek, Auslieferungsziel oder beides) wählen, dann Loslegen.", - "Choose what should happen: Clean up (frame, wall, shop interface gone), Cut out (subject free, background transparent), Format (30 × 40 cm or The Frame, for instance), Contour (white sticker edge).": "Wählen, was passieren soll: Bereinigen (Rahmen, Wand, Shop-Oberfläche weg), Freistellen (Motiv frei, Hintergrund transparent), Format (z. B. 30 × 40 cm oder The Frame), Kontur (weißer Stickerrand).", + "Choose what should happen: Clean up (frame, wall, shop interface gone), Cut out (subject free, background transparent), Format (30 × 40 cm or a 16:9 TV frame, for instance), Contour (white sticker edge).": "Wählen, was passieren soll: Bereinigen (Rahmen, Wand, Shop-Oberfläche weg), Freistellen (Motiv frei, Hintergrund transparent), Format (z. B. 30 × 40 cm oder TV 16:9), Kontur (weißer Stickerrand).", "Clean up": "Bereinigen", "Clean up leftovers": "Reste aufräumen", "Clean up screenshots, cut them out, bring them to size.": "Screenshots bereinigen, freistellen, aufs Format bringen.", @@ -303,7 +312,6 @@ "Create link": "Link erzeugen", "Create the PDF and choose “Actual size / 100%” in the print dialog. Done.": "PDF erzeugen und im Druckdialog „Tatsächliche Größe / 100 %“ wählen. Fertig.", "Credit card 85.6 × 54 mm": "Scheckkarte 85,6 × 54 mm", - "Cricut sheet size (cm)": "Cricut-Bogenmaß (cm)", "Crop": "Zuschneiden", "Crop marks as in prepress": "Schnittmarken wie in der Druckvorstufe", "Crop · {size}": "Zuschnitt · {size}", @@ -314,7 +322,7 @@ "Custom size (cm)": "Eigenes Maß (cm)", "Custom size …": "Eigenes Maß …", "Cut out": "Freistellen", - "Cut out + The Frame makes no sense — pick one.": "Freistellen + The Frame ergibt keinen Sinn — bitte eins wählen.", + "Cut out + TV 16:9 makes no sense — pick one.": "Freistellen + TV 16:9 ergibt keinen Sinn — bitte eins wählen.", "Cutting": "Schneiden", "Cutting aids": "Schnitthilfen", "DIN A0 (84.1 × 118.9 cm)": "DIN A0 (84,1 × 118,9 cm)", @@ -329,6 +337,8 @@ "DIN A7–A0, photo paper, US sizes, custom size": "DIN A7–A0, Fotopapier, US-Maße, freies Maß", "DL 9.9 × 21 cm": "DIN lang 9,9 × 21 cm", "DL landscape 21 × 9.9 cm": "DIN lang quer 21 × 9,9 cm", + "DNS ✓ ({address})": "DNS ✓ ({address})", + "DNS ✕ ({error})": "DNS ✕ ({error})", "Default": "Standard", "Default delivery target": "Standard-Auslieferungsziel", "Default dpi": "Standard-dpi", @@ -416,10 +426,11 @@ "For power users there is also the “/” command menu (/new, /presets, /status) — it is not needed.": "Für Profis gibt es zusätzlich das „/\"-Befehlsmenü (/new, /presets, /status) — nötig ist es nicht.", "For printing always choose 300 dpi and a cm format — the pixel dimensions are right there next to it.": "Für Druck immer 300 dpi und ein cm-Format wählen — die Pixelmaße stehen direkt dabei.", "For that you first need an email address (above).": "Dafür brauchst du zuerst eine E-Mail-Adresse (oben).", - "For the format, choose “Crop” or “Extend” — extending generates more scene around the subject (outpainting), which is ideal for The Frame.": "Beim Format „Zuschneiden\" oder „Erweitern\" wählen — Erweitern erzeugt mehr Szene rund ums Motiv (Outpainting), ideal für The Frame.", + "For the format, choose “Crop” or “Extend” — extending generates more scene around the subject (outpainting), which is ideal for a wide TV frame.": "Beim Format „Zuschneiden\" oder „Erweitern\" wählen — Erweitern erzeugt mehr Szene rund ums Motiv (Outpainting), ideal für TV 16:9.", "Force private": "Privat erzwingen", "Forgot your password": "Passwort vergessen", "Forgot your password?": "Passwort vergessen?", + "Format (optional)": "Format (optional)", "Format of {name}": "Format von {name}", "From the library": "Aus Bibliothek", "Gap automatic ({gap} mm — to suit the marks)": "Abstand automatisch ({gap} mm — passend zu den Marken)", @@ -434,14 +445,16 @@ "Generate preview images": "Vorschaubilder erzeugen", "Generate token": "Token erzeugen", "Generating an alternative …": "Erzeuge Alternative …", - "Give every image in the library a unique name?\n\nThe files themselves stay untouched — they are stored under their ID. Copies already placed on the delivery target keep their old name; that is what “Deliver again” is for afterwards.": "Alle Bilder der Bibliothek auf eindeutige Namen bringen?\n\nDie Dateien selbst bleiben unberührt — sie liegen unter ihrer ID im Speicher. Bereits am Auslieferungsziel abgelegte Kopien behalten ihren alten Namen; dafür gibt es danach „Erneut ausliefern\".", + "Give every image in the library a unique name?\n\nThe files themselves stay untouched — they are stored under their ID. ": "Alle Bilder der Bibliothek auf eindeutige Namen bringen?\n\nDie Dateien selbst bleiben unberührt — sie liegen unter ihrer ID im Speicher. Bereits am Auslieferungsziel abgelegte Kopien behalten ihren alten Namen; dafür gibt es danach „Erneut ausliefern\".", "Gives exactly {w} × {h} pixels at 300 dpi — ready to print.": "Ergibt exakt {w} × {h} Pixel bei 300 dpi — druckfertig.", "Glue flap (mm)": "Klebefalz (mm)", "Grab the image and drag · double-tap zooms · arrow keys for fine work.": "Bild anfassen und ziehen · Doppeltipp zoomt · Pfeiltasten für Feinarbeit.", "Green": "Grün", "Heading": "Überschrift", + "Help": "Hilfe", "Help · Klarbild": "Anleitung · Klarbild", "Hide visits": "Zugriffe zu", + "Host": "Host", "How Klarbild works": "So funktioniert Klarbild", "If the aspect ratio does not fit, you decide: crop or letterbox. In the crop window you move and zoom the original inside the target frame — with the mouse, a finger, a double-tap or the arrow keys. The crop is stored relatively and survives any resolution.": "Passt das Seitenverhältnis nicht, entscheidest du: zuschneiden oder Rand lassen. Im Zuschnitt-Fenster verschiebst und zoomst du das Original im Zielrahmen — mit Maus, Finger, Doppeltipp oder Pfeiltasten. Der Ausschnitt wird relativ gespeichert und überlebt jede Auflösung.", "If there is an account for this address, the message is on its way. Have a look in the spam folder too.": "Wenn es zu dieser Adresse ein Konto gibt, ist die Nachricht unterwegs. Schau auch im Spam nach.", @@ -491,6 +504,7 @@ "Links that let other people look at your images — without an account. Here you can see how often they were opened, and switch them off whenever you want.": "Links, mit denen andere deine Bilder ansehen können — ohne Konto. Hier siehst du, wie oft sie geöffnet wurden, und kannst sie jederzeit abschalten.", "Loading …": "Wird geladen …", "Mailbox password": "Postfach-Passwort", + "Main navigation": "Hauptnavigation", "Make the print PDF": "Druck-PDF erzeugen", "Manage all links": "Alle Links verwalten", "Margin to the paper edge (mm)": "Rand zum Papier (mm)", @@ -514,6 +528,7 @@ "My account · Klarbild": "Mein Konto · Klarbild", "My account, sharing & email": "Mein Konto, Teilen & E-Mail", "NSFW off": "NSFW aus", + "Name": "Name", "Name is missing.": "Name fehlt.", "Name of the preset?": "Name des Presets?", "Name of the preset? (e.g. “Nursery set”)": "Name der Vorlage? (z. B. „Kita-Satz\")", @@ -588,6 +603,7 @@ "Own border colour": "Eigene Randfarbe", "Own instruction (optional)": "Eigene Anweisung (optional)", "Own only": "Nur eigene", + "PDF": "PDF", "PDF at original size, 72–1200 dpi": "PDF in Originalgröße, 72–1200 dpi", "PDF generated again. When printing, choose “Actual size / 100 %”.": "PDF neu erzeugt. Beim Drucken „Tatsächliche Größe / 100 %\" wählen.", "PDF ready · {sheets}. When printing, choose “Actual size / 100 %”.": "PDF fertig · {sheets}. Beim Drucken „Tatsächliche Größe / 100 %\" wählen.", @@ -634,10 +650,12 @@ "Please give a valid paper size.": "Bitte ein gültiges Papiermaß angeben.", "Polaroid · image area 79 × 79 mm": "Polaroid · Bildfläche 79 × 79 mm", "Polaroid · whole card 88 × 107 mm": "Polaroid · ganze Karte 88 × 107 mm", + "Port": "Port", "Port reachable in {ms}ms ✓": "Port erreichbar in {ms}ms ✓", "Portrait": "Hochformat", "Portrait (9:16)": "Hochformat (9:16)", "Postcard 14.8 × 10.5 cm (A6 landscape)": "Postkarte 14,8 × 10,5 cm (A6 quer)", + "Poster": "Poster", "Poster & frames": "Poster & Rahmen", "Preset deleted.": "Preset gelöscht.", "Preset loaded — the image was taken over for every format.": "Vorlage geladen — das Bild wurde für jedes Format übernommen.", @@ -654,6 +672,7 @@ "Printed last": "Zuletzt gedruckt", "Private off": "Privat aus", "Private session": "Private Session", + "Prompt": "Prompt", "Prompt copied.": "Prompt kopiert.", "Proof": "Nachweis", "Protected with a passphrase": "Mit Zugangswort geschützt", @@ -687,6 +706,7 @@ "Rotate to save space": "Zum Platzsparen drehen", "Run it yourself": "Selbst betreiben", "Run “Check library” first — then you can see what would change.": "Erst „Bibliothek prüfen\" — dann siehst du, was sich ändern würde.", + "Running": "Läuft", "Save": "Speichern", "Save as PDF / print": "Als PDF / drucken", "Save password": "Passwort speichern", @@ -731,6 +751,7 @@ "Share links": "Teilen-Links", "Share links are only valid for a limited time. Whoever sent it to you can create a new one.": "Teilen-Links gelten nur eine begrenzte Zeit. Wer ihn dir geschickt hat, kann einen neuen erzeugen.", "Share {n} images": "{n} Bilder teilen", + "Shared": "Geteilt", "Shared links": "Geteilte Links", "Shared links · Klarbild": "Geteilte Links · Klarbild", "Sharing images, email, forgotten passwords": "Bilder teilen, E-Mail, Passwort vergessen", @@ -743,6 +764,7 @@ "Shown as": "Angezeigt als", "Sign in": "Anmelden", "Sign in · Klarbild": "Anmelden · Klarbild", + "Sign out": "Abmelden", "Sign-in failed.": "Anmeldung fehlgeschlagen.", "Size not recognised. Examples: “13x18” (cm), “35x45mm”, “4:3/15”.": "Maß nicht erkannt. Beispiele: „13x18\" (cm), „35x45mm\", „4:3/15\".", "Size not recognised. Examples: “21x29.7”, “329x483mm”.": "Maß nicht erkannt. Beispiele: „21x29,7\", „329x483mm\".", @@ -766,6 +788,7 @@ "Stickers: choose Cut out + Contour together.": "Sticker: Freistellen + Kontur zusammen wählen.", "Storage & cleanup": "Speicher & Aufräumen", "Stored encrypted, takes precedence over the environment variable.": "Verschlüsselt gespeichert, hat Vorrang vor der Umgebungsvariable.", + "Studio": "Studio", "Subject only, background transparent.": "Nur das Motiv, Hintergrund transparent.", "Switch back on": "Wieder freigeben", "Switch off": "Abschalten", @@ -778,6 +801,7 @@ "Target created.": "Ziel angelegt.", "Telegram bot": "Telegram-Bot", "Tell me when a job is finished": "Sag mir Bescheid, wenn ein Auftrag fertig ist", + "Test": "Testen", "Test connection": "Verbindung testen", "Test message": "Testnachricht", "Test message to": "Testnachricht an", @@ -839,7 +863,7 @@ "Unique file names — images no longer overwrite each other": "Eindeutige Dateinamen — Bilder überschreiben sich nicht mehr", "Unit": "Einheit", "Unlink": "Trennen", - "Upload all already delivered images again — under the new name?\n\nThe old files stay on the target and have to be removed there by hand. This can take a while.": "Alle bereits ausgelieferten Bilder erneut hochladen — unter dem neuen Namen?\n\nDie alten Dateien bleiben am Ziel liegen und müssen dort von Hand entfernt werden. Das kann dauern.", + "Upload all already delivered images again — under the new name?\n\n": "Alle bereits ausgelieferten Bilder erneut hochladen — unter dem neuen Namen?\n\nDie alten Dateien bleiben am Ziel liegen und müssen dort von Hand entfernt werden. Das kann dauern.", "Upload failed": "Upload fehlgeschlagen", "Upload images (drag them in, ⌘/Ctrl + V) — or Choose from the library: everything Klarbild has already produced, with search, by folder and several at once. No more detour through another upload.": "Bilder hochladen (ziehen, ⌘/Strg + V) — oder Aus der Bibliothek wählen: alles, was Klarbild schon erzeugt hat, mit Suche, nach Ordner und mehrere auf einmal. Kein Umweg mehr über einen erneuten Upload.", "Upload screenshots — drag them in, paste with ⌘/Ctrl + V or tap (up to 100 at once).": "Screenshots hochladen — ziehen, mit ⌘/Strg + V einfügen oder tippen (bis zu 100 auf einmal).", @@ -914,7 +938,7 @@ "e.g. 5 (=5×5 cm) or 5x7": "z. B. 5 (=5×5 cm) oder 5x7", "e.g. Ada in the garden": "z. B. Ada im Garten", "e.g. Nursery photos August": "z. B. Kita-Fotos August", - "e.g. The Frame FTP": "z. B. The Frame FTP", + "e.g. Studio archive": "z. B. TV 16:9 FTP", "e.g. mirror.local or DDNS": "z. B. spiegel.local oder DDNS", "e.g. smtp.example.com": "z. B. smtp.example.com", "e.g. “A minimalist poster with an olive branch on a sand-coloured ground.”": "z. B. „Ein minimalistisches Poster mit einem Olivenzweig auf sandfarbenem Grund.“", @@ -940,6 +964,7 @@ "off": "aus", "only {dpi} dpi — goes slightly soft": "nur {dpi} dpi — wird leicht weich", "only {dpi} dpi — goes visibly blurred, take a smaller format or a bigger image": "nur {dpi} dpi — wird sichtbar unscharf, kleineres Format oder größeres Bild nehmen", + "optional": "optional", "or": "oder", "or send it straight from here": "oder direkt von hier verschicken", "own text": "eigener Text", @@ -965,6 +990,7 @@ "top centre": "oben mittig", "top left": "oben links", "top right": "oben rechts", + "transparent": "transparent", "valid until {date}": "gültig bis {date}", "view only": "nur ansehen", "views": "Aufrufe", @@ -1025,9 +1051,10 @@ "{sizes} on a usable {usable}.": "{sizes} bei nutzbaren {usable}.", "{size} = {w} × {h} px": "{size} = {w} × {h} px", "{size} does not fit on {paper}.": "{size} passt nicht auf {paper}.", + "{title} · Klarbild": "{title} · Klarbild", "“Backup” targets automatically receive all results (like the backup mirror).": "„Backup\"-Ziele erhalten automatisch alle Ergebnisse (wie der Sicherungsspiegel).", "“Deliver again” uploads every already delivered image to the target again under the new name. The old files stay there — deleting something at the client automatically would be the wrong reflex; you do that on the delivery target yourself.": "„Erneut ausliefern\" lädt alle schon ausgelieferten Bilder unter dem neuen Namen erneut zum Ziel hoch. Die alten Dateien bleiben dort liegen — automatisch etwas beim Kunden zu löschen wäre der falsche Reflex; das machst du am Auslieferungsziel selbst.", - "“Extend” produces more scene around the subject (outpainting) instead of cropping — made for The Frame.": "„Erweitern\" erzeugt mehr Szene rund ums Motiv (Outpainting), statt zuzuschneiden — ideal für The Frame.", + "“Extend” produces more scene around the subject (outpainting) instead of cropping — made for wide TV frames.": "„Erweitern\" erzeugt mehr Szene rund ums Motiv (Outpainting), statt zuzuschneiden — ideal für TV 16:9.", "“Passport photos” becomes “Print” — 86 image sizes, crop repaired": "Aus „Passbilder\" wird „Drucken\" — 86 Bildmaße, Zuschnitt repariert", "“Show folder” lists what actually sits where over SFTP.": "„Ordner anzeigen\" listet, was per SFTP tatsächlich wo liegt.", "“Test connection” only checks the login. Only the test message proves that the mail really arrives — look in the spam folder too.": "„Verbindung testen\" prüft nur die Anmeldung. Erst die Testnachricht beweist, dass die Mail wirklich ankommt — schau auch im Spam-Ordner nach.", diff --git a/src/middleware.ts b/src/middleware.ts index 4b407ee..ee9fa01 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -5,7 +5,7 @@ import { one } from './lib/db'; import { LOCALE_COOKIE, resolveLocale, isLocale } from './lib/i18n'; const PUBLIC_PATHS = [ - /^\/login/, /^\/tour/, /^\/api\/auth\/login/, /^\/api\/health/, /^\/g\//, + /^\/login/, /^\/tour/, /^\/api\/auth\/login/, /^\/api\/health/, /^\/api\/telegram\/webhook/, /^\/llms\.txt/, // Forgot password — must be reachable without being signed in, otherwise it's pointless. /^\/password/, /^\/api\/auth\/reset/, diff --git a/src/pages/changelog.astro b/src/pages/changelog.astro index 2267c34..da8f74c 100644 --- a/src/pages/changelog.astro +++ b/src/pages/changelog.astro @@ -113,7 +113,7 @@ const dict = dictFor(locale);
  • Combine: several images plus a description into one new image (for example “… with our dog”).')} />
  • Generate: images from text alone, with no source image at all.')} /> -
  • The Frame “Extend”: generate more scene around the subject (outpainting) instead of only cropping.')} /> +
  • TV 16:9 “Extend”: generate more scene around the subject (outpainting) instead of only cropping.')} />
  • Keep editing: take a finished image as a new source and edit it again.')} />
  • Alternatives: generate further versions of the same image — grouped, with a switcher.')} />
  • Folders: filter, rename and delete in the library; each folder can have its own folder on the target.')} /> @@ -132,7 +132,7 @@ const dict = dictFor(locale);
  • Prompt display: every generated image shows its prompt in the library (with a copy button).')} />
  • Manage preset recipes yourself: save the current settings as a recipe, load it, delete it.')} />
  • API token & MCP server: external access — hand images from a folder or from iMessage to Klarbild through an assistant.')} /> -
  • The Frame now delivers automatically into the folder “TheFrame-Backgrounds” on the target.')} /> +
  • TV 16:9 now delivers automatically into the folder “TheFrame-Backgrounds” on the target.')} />
  • A second backup (the mirror): every result additionally goes to the backup mirror over SFTP/FTPS (Tailscale works too) — with a “Mirror ✓” marker and “Back up all images to the mirror”.')} />
  • Storage management: thumbnails, deleting sources, an automatic retention period.')} />
  • Telegram entirely button-driven: a permanent keyboard & menu — Edit, Combine, “✨ New image”, Keep editing, with no commands at all.')} /> diff --git a/src/pages/help.astro b/src/pages/help.astro index 24fb10d..1173dff 100644 --- a/src/pages/help.astro +++ b/src/pages/help.astro @@ -21,8 +21,8 @@ const dict = dictFor(locale);
    1. Edit at the top of the studio.')} />
    2. {t('Upload screenshots — drag them in, paste with ⌘/Ctrl + V or tap (up to 100 at once).')}
    3. -
    4. Clean up (frame, wall, shop interface gone), Cut out (subject free, background transparent), Format (30 × 40 cm or The Frame, for instance), Contour (white sticker edge).')} /> -
    5. Crop” or “Extend” — extending generates more scene around the subject (outpainting), which is ideal for The Frame.')} /> +
    6. Clean up (frame, wall, shop interface gone), Cut out (subject free, background transparent), Format (30 × 40 cm or a 16:9 TV frame, for instance), Contour (white sticker edge).')} /> +
    7. Crop” or “Extend” — extending generates more scene around the subject (outpainting), which is ideal for a wide TV frame.')} />
    8. quality and where it goes (library, delivery target or both), then Start.')} />
    @@ -55,7 +55,7 @@ const dict = dictFor(locale);

    Print tab is the photo-lab part of Klarbild: no model, no cost, no waiting. Only cropping, scaling and geometry — from the biometric passport photo to the 30 × 40 poster.')} />

    1. Choose from the library: everything Klarbild has already produced, with search, by folder and several at once. No more detour through another upload.')} /> -
    2. final size for each image. Every format from AI generation is here — biometric passport photo 35 × 45 mm, 2 × 3 to 6 × 9 cm, 9 × 13 to 24 × 30, poster and frame sizes 30 × 40 to 70 × 100, squares, DIN A6–A2 and the aspect ratios (16:9 “The Frame”, 9:16, 3:2, 4:3, 5:4) — or a custom size: 12x15 (cm), 35x45mm, 5 (= 5 × 5 cm) or 4:3/15 (ratio 4:3, longer edge 15 cm).')} /> +
    3. final size for each image. Every format from AI generation is here — biometric passport photo 35 × 45 mm, 2 × 3 to 6 × 9 cm, 9 × 13 to 24 × 30, poster and frame sizes 30 × 40 to 70 × 100, squares, DIN A6–A2 and the aspect ratios (16:9 TV, 9:16, 3:2, 4:3, 5:4) — or a custom size: 12x15 (cm), 35x45mm, 5 (= 5 × 5 cm) or 4:3/15 (ratio 4:3, longer edge 15 cm).')} />
    4. If the image does not fit the format, you decide for each image: Crop (the format is filled, something is missing at the edges — the default) or Letterbox (the whole image stays visible, with the border colour around it — white, black, paper-coloured or freely chosen). Nothing is ever distorted.')} />
    5. Crop: pan and zoom. The aspect ratio stays locked to the target format, and nothing is ever distorted.')} />
    6. quantity per image — that is how the passport-photo or school photo set comes about.')} /> diff --git a/src/pages/library.astro b/src/pages/library.astro index 0c65fd8..cd4c11f 100644 --- a/src/pages/library.astro +++ b/src/pages/library.astro @@ -1,7 +1,10 @@ --- import Base from '../layouts/Base.astro'; +import { has } from '../lib/modules'; import LibraryApp from '../components/LibraryApp.tsx'; import { tFor, dictFor } from '../lib/i18n.server'; +// A page of a module that is off does not exist for this instance. +if (!has('ai')) return Astro.redirect('/print', 302); const locale = Astro.locals.locale ?? 'en'; const t = tFor(locale); const dict = dictFor(locale); diff --git a/src/pages/llms.txt.ts b/src/pages/llms.txt.ts index 3fbc19f..a79aa25 100644 --- a/src/pages/llms.txt.ts +++ b/src/pages/llms.txt.ts @@ -46,7 +46,7 @@ world such a module does not exist. ## Formats (output_format) - Fixed keys: 9x13,10x15,13x18,15x20,20x30,30x40,30x45,40x50,40x60,50x70,60x90, - A4,A3,A2,20x20,30x30, theframe (3840x2160), portrait916 (2160x3840), keep (keep the original). + A4,A3,A2,20x20,30x30, tv169 (3840x2160), portrait916 (2160x3840), keep (keep the original). - Custom sizes without a preset: \`WIDTHxHEIGHT\` in cm (e.g. \`25x35\`) or \`sticker\` for N×N cm (e.g. \`sticker5\` = 5×5 cm). Limit 300 cm. Exact pixels: round(cm/2.54*dpi). - File format (output_ext): \`png\` (lossless, transparency) or \`jpg\` (small, easy on the @@ -81,7 +81,7 @@ Purely local geometry: cropping (sharp) plus PDF (pdf-lib). No model, no cost. S9x13,S10x15,S11x15,S12x15,S13x18,S15x20,S18x24,S20x25,S20x30,S24x30 · R30x40,R30x45,R40x50,R40x60,R50x70,R60x80,R60x90,R70x100 (poster and frame) · Q10x10,Q13x13,Q20x20,Q30x30 · DA6,DA5,DA4,DA3,DA2 · - W16x9,W9x16,W3x2,W4x3,W5x4 (aspect ratios as a print size, The Frame among them). + W16x9,W9x16,W3x2,W4x3,W5x4 (aspect ratios as a print size, a 16:9 TV frame among them). So every format the AI generation offers (src/lib/format.ts) can be printed here too. - If the image does not match the size (fit, per cell): \`cover\` = crop until it is filled (the default, nothing stays empty, something is lost at the edges) or \`contain\` = letterbox the whole image, the @@ -178,7 +178,7 @@ Results carry IPTC \`DigitalSourceType\` as XMP inside the file: Readable with exiftool. The print module creates nothing with AI and therefore labels nothing. ## File names of the results -Scheme: \`YYYY-MM-DD_HHMMSS___.\` — e.g. \`2026-08-20_143207_team-badge_the-frame_a3f9.jpg\`. +Scheme: \`YYYY-MM-DD_HHMMSS___.\` — e.g. \`2026-08-20_143207_team-badge_tv169_a3f9.jpg\`. - The timestamp comes first, so any file listing (the delivery target, the backup mirror, a file manager) sorts chronologically by itself. - The four-character short id comes from the item id. That way two images are **never** named the @@ -195,7 +195,7 @@ Scheme: \`YYYY-MM-DD_HHMMSS___.\` — e.g. \`2026- ## Delivery - A delivery target is an SFTP/FTPS server; the folder on the target is a subfolder under the base path. The full path is base folder + folder (only assembled when delivering). The default folder is - "Gallery A"; "The Frame" → "TheFrame-Backgrounds". + "Gallery A"; "TV 16:9" → "TV-Backgrounds". - What is delivered is the result in the chosen file format (output_ext, global or per job) — PNG or JPG. Cut-out motifs stay PNG. - An optional .md metadata sidecar file can be switched on per target (delivery target, backup mirror, diff --git a/src/pages/queue.astro b/src/pages/queue.astro index 0c0290c..8b416e5 100644 --- a/src/pages/queue.astro +++ b/src/pages/queue.astro @@ -1,7 +1,10 @@ --- import Base from '../layouts/Base.astro'; +import { has } from '../lib/modules'; import QueueApp from '../components/QueueApp.tsx'; import { tFor, dictFor } from '../lib/i18n.server'; +// A page of a module that is off does not exist for this instance. +if (!has('ai')) return Astro.redirect('/print', 302); const locale = Astro.locals.locale ?? 'en'; const t = tFor(locale); const dict = dictFor(locale); diff --git a/src/pages/shares.astro b/src/pages/shares.astro index a6cc93b..fe44f34 100644 --- a/src/pages/shares.astro +++ b/src/pages/shares.astro @@ -1,7 +1,10 @@ --- import Base from '../layouts/Base.astro'; +import { has } from '../lib/modules'; import SharesApp from '../components/SharesApp'; import { tFor, dictFor } from '../lib/i18n.server'; +// A page of a module that is off does not exist for this instance. +if (!has('share')) return Astro.redirect('/print', 302); const locale = Astro.locals.locale ?? 'en'; const t = tFor(locale); const dict = dictFor(locale); diff --git a/tests/naming.test.ts b/tests/naming.test.ts index 26a058f..9ffe0e4 100644 --- a/tests/naming.test.ts +++ b/tests/naming.test.ts @@ -8,11 +8,11 @@ const ID2 = '77b21e00-1111-2222-3333-444455556666'; test('The reported bug: two badges on the same day no longer overwrite each other', () => { // Same motif, same size, same second — this used to produce the same name twice. - const a = buildResultFilename('Portrait Badge.png', 'the-frame', 'jpg', { at: AT, id: ID1 }); - const b = buildResultFilename('Portrait Badge.png', 'the-frame', 'jpg', { at: AT, id: ID2 }); + const a = buildResultFilename('Portrait Badge.png', 'tv169', 'jpg', { at: AT, id: ID1 }); + const b = buildResultFilename('Portrait Badge.png', 'tv169', 'jpg', { at: AT, id: ID2 }); assert.notEqual(a, b, 'two images must never carry the same name'); - assert.equal(a, '2026-08-20_143207_portrait-badge_the-frame_a3f9.jpg'); - assert.equal(b, '2026-08-20_143207_portrait-badge_the-frame_77b2.jpg'); + assert.equal(a, '2026-08-20_143207_portrait-badge_tv169_a3f9.jpg'); + assert.equal(b, '2026-08-20_143207_portrait-badge_tv169_77b2.jpg'); }); test('Names sort lexicographically = chronologically', () => { @@ -42,12 +42,12 @@ test('Midnight is written as 00, not as 24', () => { test('The short id is stable — a second run gives the same name', () => { assert.equal(shortTag(ID1), shortTag(ID1)); assert.equal(shortTag(ID1), 'a3f9'); - const it = { id: ID1, filename: '2026-07-23_portrait_the-frame.png', created_at: AT }; + const it = { id: ID1, filename: '2026-07-23_portrait_tv169.png', created_at: AT }; assert.equal(newNameFor(it), newNameFor(it)); }); test('Processing an image again does not stack up stamps', () => { - const once = buildResultFilename('Portrait Badge.png', 'the-frame', 'jpg', { at: AT, id: ID1 }); + const once = buildResultFilename('Portrait Badge.png', 'tv169', 'jpg', { at: AT, id: ID1 }); const twice = buildResultFilename(once, '30x40', 'jpg', { at: AT, id: ID2 }); assert.equal(twice, '2026-08-20_143207_portrait-badge_30x40_77b2.jpg'); const thrice = buildResultFilename(twice, 'a4', 'jpg', { at: AT, id: ID1 }); @@ -55,26 +55,26 @@ test('Processing an image again does not stack up stamps', () => { }); test('Our own pattern recognises our own names and only those', () => { - assert.ok(KLARBILD_NAME.test('2026-08-20_143207_portrait-badge_the-frame_a3f9')); + assert.ok(KLARBILD_NAME.test('2026-08-20_143207_portrait-badge_tv169_a3f9')); assert.ok(KLARBILD_NAME.test('2026-08-20_143207_portrait_30x40_a3f9-2')); - assert.ok(!KLARBILD_NAME.test('2026-07-23_portrait_the-frame')); // the old scheme + assert.ok(!KLARBILD_NAME.test('2026-07-23_portrait_tv169')); // the old scheme assert.ok(!KLARBILD_NAME.test('holiday-2026_beach')); // somebody else's name }); test('Old names are split up correctly', () => { - assert.deepEqual(splitOldName('2026-07-23_portrait_the-frame.png'), { motif: 'portrait', format: 'the-frame', ext: 'png' }); + assert.deepEqual(splitOldName('2026-07-23_portrait_tv169.png'), { motif: 'portrait', format: 'tv169', ext: 'png' }); assert.deepEqual(splitOldName('2026-07-23_klarbild_30x40.jpg'), { motif: 'klarbild', format: '30x40', ext: 'jpg' }); // A foreign file without our scheme: all of it becomes the motif, format "original". assert.deepEqual(splitOldName('Holiday Crete.JPEG'), { motif: 'holiday-crete', format: 'original', ext: 'jpeg' }); // Already in the new scheme: motif and format stay, so that renaming is idempotent. - assert.deepEqual(splitOldName('2026-08-20_143207_portrait-badge_the-frame_a3f9.jpg'), - { motif: 'portrait-badge', format: 'the-frame', ext: 'jpg' }); + assert.deepEqual(splitOldName('2026-08-20_143207_portrait-badge_tv169_a3f9.jpg'), + { motif: 'portrait-badge', format: 'tv169', ext: 'jpg' }); }); test('Renaming is idempotent — a second run changes nothing', () => { - const old = { id: ID1, filename: '2026-07-23_portrait_the-frame.png', created_at: new Date('2026-07-23T09:15:42Z') }; + const old = { id: ID1, filename: '2026-07-23_portrait_tv169.png', created_at: new Date('2026-07-23T09:15:42Z') }; const fresh = newNameFor(old); - assert.equal(fresh, '2026-07-23_111542_portrait_the-frame_a3f9.png'); + assert.equal(fresh, '2026-07-23_111542_portrait_tv169_a3f9.png'); assert.equal(newNameFor({ ...old, filename: fresh }), fresh, 'the second run has to give the same name'); }); @@ -144,9 +144,9 @@ test('Folder and file names cannot leave the base folder', () => { }); test('Real customer folders stay allowed — the check is not there to annoy', () => { - const good = ['Gallery A', 'TheFrame-Backgrounds', 'Müller & Söhne (2026)', + const good = ['Gallery A', 'TV-Backgrounds', 'Müller & Söhne (2026)', "Wedding O'Brien", 'Daycare 2026_Group 3', 'a.b.c', - '2026-08-20_143207_portrait-badge_the-frame_a3f9.jpg']; + '2026-08-20_143207_portrait-badge_tv169_a3f9.jpg']; for (const g of good) assert.equal(safeSegment(g, 'folder'), g, `wrongly rejected: ${g}`); });