diff options
-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: |