Browse Source

#610: finetune default avatar sizes, and add extra doc

Rafał Pitoń 8 years ago
parent
commit
e873cd6dcb
2 changed files with 4 additions and 1 deletions
  1. 3 0
      docs/developers/settings.rst
  2. 1 1
      misago/conf/defaults.py

+ 3 - 0
docs/developers/settings.rst

@@ -234,6 +234,9 @@ MISAGO_AVATARS_SIZES
 
 
 Misago uses avatar cache that prescales avatars to requested sizes. Enter here sizes to which those should be optimized.
 Misago uses avatar cache that prescales avatars to requested sizes. Enter here sizes to which those should be optimized.
 
 
+.. warning::
+   It's impossible to regenerate user avatars store for existing avatars. Misago comes with sane defaults for avatar sizes, with min. height for user avatar being 400 pixels square, and steps of 200, 150, 100, 64, 50 and 30px. However if you need larger avatar or different pregenerated dimensions, changing those will require you to manually remove ``avatars`` directory from your media storage as well as running ``misago.users.avatars.set_default_avatar`` function against every user registered.
+
 
 
 MISAGO_BLANK_AVATAR
 MISAGO_BLANK_AVATAR
 -------------------
 -------------------

+ 1 - 1
misago/conf/defaults.py

@@ -255,7 +255,7 @@ MISAGO_DYNAMIC_AVATAR_DRAWER = 'misago.users.avatars.dynamic.draw_default'
 # For which sizes avatars should be cached
 # For which sizes avatars should be cached
 # Keep sizes ordered from greatest to smallest
 # Keep sizes ordered from greatest to smallest
 # Max size also controls min size of uploaded image as well as crop size
 # Max size also controls min size of uploaded image as well as crop size
-MISAGO_AVATARS_SIZES = (400, 200, 150, 100, 64, 50, 30, 20)
+MISAGO_AVATARS_SIZES = (400, 200, 150, 100, 64, 50, 30)
 
 
 # Path to blank avatar
 # Path to blank avatar
 MISAGO_BLANK_AVATAR = 'blank-avatar.png'
 MISAGO_BLANK_AVATAR = 'blank-avatar.png'