diff options
author | Nikolay Zamotaev <nzamotaev@luxoft.com> | 2020-04-02 18:05:59 +0300 |
---|---|---|
committer | Nikolay Zamotaev <nzamotaev@luxoft.com> | 2020-04-08 14:47:43 +0000 |
commit | 7b16ce74b5efd12d307a511135b21eceae764b97 (patch) | |
tree | 6a3512b8ad9becde1139841c3299ee7ba53ee39c | |
parent | 830bb18addd3dfa4a868c25d143d93a112f4dfa2 (diff) |
Category icon decolorisation disabled by default
Change-Id: I90b2d68b3f7ee21efaba19d5d0d7a1a4d1a4f314
Fixes: AUTOSUITE-1462
Reviewed-by: Evgeniy Zabotkin <ezabotkin@luxoft.com>
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
-rw-r--r-- | appstore/settings.py | 6 | ||||
-rw-r--r-- | doc/src/deployment-server.qdoc | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/appstore/settings.py b/appstore/settings.py index 2224284..092ea09 100644 --- a/appstore/settings.py +++ b/appstore/settings.py @@ -159,8 +159,8 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static') MEDIA_URL = '' # Icon size (icons are resized to this size on upload) -ICON_SIZE_X = 36 -ICON_SIZE_Y = 32 +ICON_SIZE_X = 50 +ICON_SIZE_Y = 50 # If the icon should be transformed to monochrome, with alpha channel, when uploaded or not -ICON_DECOLOR = True +ICON_DECOLOR = False diff --git a/doc/src/deployment-server.qdoc b/doc/src/deployment-server.qdoc index a5a02d0..0afd215 100644 --- a/doc/src/deployment-server.qdoc +++ b/doc/src/deployment-server.qdoc @@ -118,6 +118,16 @@ Make sure to adapt the \c{APPSTORE_*} settings in \c{appstore/settings.py} to your environment, before you run the server. + One setting group to note is category icon resizing and decolorization settings. They are: + \c{ICON_SIZE_X}, \c{ICON_SIZE_Y} and \c{ICON_DECOLOR}. \c{ICON_DECOLOR} is False by default, and it + regulates stripping the category icon of color and alpha channel and the subsequent application + of the same image as an alpha channel instead. + + \c{ICON_SIZE_X} and \c{ICON_SIZE_Y} are the maximum icon sizes, icons are scaled in such a way, + as not to exceed this size, while keeping the aspect ratio of the icon. Default values are 50x50, + so you should be aware that any uploaded icon will be limited to this size, unless the server is + reconfigured. + Since package downloads are done via temporary files, you need to setup a cron-job to remove these temporary files periodically. The cron-job should be triggered every \c{settings.APPSTORE_DOWNLOAD_EXPIRY/2} minutes; it needs to run: |