Skip to content

Commit

Permalink
Add additional photo renditions in settings.py (#363)
Browse files Browse the repository at this point in the history
* Add additional photo renditions in settings.py

* remove sqauare field
  • Loading branch information
devketanpro authored Nov 19, 2024
1 parent c59e057 commit 7238e8a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,23 @@
"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},
"viewImage": {"width": 200, "height": 200},
},
}

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 7238e8a

Please sign in to comment.