diff --git a/daemon.py b/daemon.py index 8f4672b5..c55e0946 100644 --- a/daemon.py +++ b/daemon.py @@ -1840,7 +1840,7 @@ class PubServer(BaseHTTPRequestHandler): self._benchmarkGETtimings(GETstartTime, GETtimings, 16) - for ext in ('png', 'jpg', 'gif'): + for ext in ('webp', 'gif', 'jpg', 'png'): # login screen background image if self.path == '/login-background.' + ext: mediaFilename = \ @@ -1942,7 +1942,7 @@ class PubServer(BaseHTTPRequestHandler): self._benchmarkGETtimings(GETstartTime, GETtimings, 17) - for ext in ('png', 'jpg', 'gif'): + for ext in ('webp', 'gif', 'jpg', 'png'): # follow screen background image if self.path == '/follow-background.' + ext: mediaFilename = \ diff --git a/theme.py b/theme.py index 0b407d2f..f6244531 100644 --- a/theme.py +++ b/theme.py @@ -626,7 +626,7 @@ def setThemeImages(baseDir: str, name: str) -> None: backgroundNames = ('login', 'shares', 'delete', 'follow', 'options', 'block', 'search', 'calendar') - extensions = ('gif', 'jpg', 'png') + extensions = ('webp', 'gif', 'jpg', 'png') for subdir, dirs, files in os.walk(baseDir + '/accounts'): for acct in dirs: