mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 05:49:16 +02:00
Merge branch 'playlist-perfs' into 'develop'
Use smaller images when possible to increase performance on client-side See merge request funkwhale/funkwhale!328
This commit is contained in:
commit
27d54ee971
23 changed files with 161 additions and 39 deletions
|
@ -471,3 +471,13 @@ MUSIC_DIRECTORY_SERVE_PATH = env(
|
|||
USERS_INVITATION_EXPIRATION_DAYS = env.int(
|
||||
"USERS_INVITATION_EXPIRATION_DAYS", default=14
|
||||
)
|
||||
|
||||
VERSATILEIMAGEFIELD_RENDITION_KEY_SETS = {
|
||||
"square": [
|
||||
("original", "url"),
|
||||
("square_crop", "crop__400x400"),
|
||||
("medium_square_crop", "crop__200x200"),
|
||||
("small_square_crop", "crop__50x50"),
|
||||
]
|
||||
}
|
||||
VERSATILEIMAGEFIELD_SETTINGS = {"create_images_on_demand": False}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue