Index: src/routes/account.js
===================================================================
--- src/routes/account.js	(revision 6d882b1985b6fed7e478dca83d635cc581767dd5)
+++ src/routes/account.js	(revision ddf549f75c0981212d2ef92b8de8e2f57e64546e)
@@ -25,4 +25,5 @@
 import { requireAuth } from '../middleware/auth.js';
 import { googleConfigured } from '../config/google.js';
+import { toWebp } from '../services/ImageWebpService.js';
 
 const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -190,5 +191,5 @@
     }
 
-    const url = `/media/avatars/${req.file.filename}`;
+    const url = `/media/avatars/${toWebp(req.file)}`;
 
     // Remove the old avatar file (if it lives in our avatar dir)
