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:
Eliot Berriot 2018-07-20 17:24:53 +00:00
commit 27d54ee971
23 changed files with 161 additions and 39 deletions

View file

@ -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}