From 6bb99ec14950787d0760afae29531e21bc51ba01 Mon Sep 17 00:00:00 2001 From: devketanpro Date: Tue, 19 Nov 2024 09:15:59 +0530 Subject: [PATCH 1/2] Add additional photo renditions in settings.py --- server/settings.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server/settings.py b/server/settings.py index 36e3a3b3..52e1d5bf 100644 --- a/server/settings.py +++ b/server/settings.py @@ -62,7 +62,16 @@ }, } -NINJS_COMMON_RENDITIONS.append("square") +if strtobool(env("EXTRA_RENDITIONS", "true")): + RENDITIONS["picture"].update( + { + "SVGA": {"width": 800, "height": 600}, + "XGA": {"width": 1024, "height": 768}, + "HD 1080p": {"width": 1920, "height": 1080}, + } + ) + +NINJS_COMMON_RENDITIONS = list(RENDITIONS["picture"].keys()) WS_HOST = env("WSHOST", "0.0.0.0") WS_PORT = env("WSPORT", "5100") From c2d6bee62be41c747b9c115a106b7c3368a6f6f0 Mon Sep 17 00:00:00 2001 From: devketanpro Date: Tue, 19 Nov 2024 16:03:56 +0530 Subject: [PATCH 2/2] remove sqauare field --- server/settings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/server/settings.py b/server/settings.py index 52e1d5bf..dde2fcdb 100644 --- a/server/settings.py +++ b/server/settings.py @@ -54,7 +54,6 @@ "thumbnail": {"width": 220, "height": 120}, "viewImage": {"width": 640, "height": 640}, "baseImage": {"width": 1400, "height": 1400}, - "square": {"width": 800, "height": 800}, }, "avatar": { "thumbnail": {"width": 60, "height": 60},