From 11257a7936c3cc6a786f4ffe91ad3744f0d97600 Mon Sep 17 00:00:00 2001 From: Luca <102960244+Luca-Timo@users.noreply.github.com> Date: Wed, 3 Jun 2026 16:01:07 +0200 Subject: [PATCH] fix(branding): allow larger square favicons The upload never enforced 32x32 - only the help text recommended it, which misled admins. Update the EN/DE guidance to recommend a larger square image (512x512) and raise the favicon upload cap 1MB -> 2MB so high-resolution PNGs fit comfortably. --- backend/src/routes/adminSettings.js | 2 +- frontend/src/i18n/locales/de.json | 2 +- frontend/src/i18n/locales/en.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/routes/adminSettings.js b/backend/src/routes/adminSettings.js index 8b0211cf..b921f4e1 100644 --- a/backend/src/routes/adminSettings.js +++ b/backend/src/routes/adminSettings.js @@ -73,7 +73,7 @@ const faviconStorage = multer.diskStorage({ const faviconUpload = multer({ storage: faviconStorage, - limits: { fileSize: 1 * 1024 * 1024 }, // 1MB + limits: { fileSize: 2 * 1024 * 1024 }, // 2MB — roomy enough for a 512×512+ square PNG fileFilter: (req, file, cb) => { const allowedMimeTypes = ['image/png', 'image/x-icon', 'image/vnd.microsoft.icon']; diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json index da352d2b..951bfb84 100644 --- a/frontend/src/i18n/locales/de.json +++ b/frontend/src/i18n/locales/de.json @@ -1708,7 +1708,7 @@ "currentFavicon": "Aktuelles Favicon", "uploadFavicon": "Favicon hochladen", "removeFavicon": "Favicon entfernen", - "faviconHelp": "PNG- oder ICO-Format, empfohlene Größe: 32x32px", + "faviconHelp": "PNG- oder ICO-Format. Bitte ein quadratisches Bild verwenden – empfohlen sind 512×512px für eine scharfe Darstellung auf hochauflösenden Bildschirmen; kleinere Größen funktionieren ebenfalls.", "watermarkSettings": "Wasserzeichen-Einstellungen", "enableWatermarks": "Wasserzeichen aktivieren", "watermarkHelp": "Fügen Sie Ihren Firmennamen als Wasserzeichen auf heruntergeladenen Fotos hinzu", diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index 184bd535..97ad94d0 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -1297,7 +1297,7 @@ "currentFavicon": "Current favicon", "uploadFavicon": "Upload Favicon", "removeFavicon": "Remove Favicon", - "faviconHelp": "PNG or ICO format, recommended size: 32x32px", + "faviconHelp": "PNG or ICO format. Use a square image — 512×512px is recommended for crisp display on high-resolution screens; smaller sizes work too.", "watermarkSettings": "Watermark Settings", "enableWatermarks": "Enable Watermarks", "watermarkHelp": "Add your company name as a watermark on downloaded photos",