Skip to content

Commit

Permalink
Add additional photo renditions in settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed Nov 19, 2024
1 parent 8936b62 commit 6bb99ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6bb99ec

Please sign in to comment.