Browse Source

Allow to shrink attached/pasted image: Add to Snap/Docker/Source.

Thanks to xet7 !
Lauri Ojansivu 5 years ago
parent
commit
ec80acf36b
7 changed files with 34 additions and 0 deletions
  1. 2 0
      Dockerfile
  2. 5 0
      docker-compose.yml
  3. 5 0
      releases/virtualbox/start-wekan.sh
  4. 0 0
      snap-src/bin/config
  5. 12 0
      snap-src/bin/wekan-help
  6. 5 0
      start-wekan.bat
  7. 5 0
      start-wekan.sh

+ 2 - 0
Dockerfile

@@ -21,6 +21,8 @@ ENV BUILD_DEPS="apt-utils bsdtar gnupg gosu wget curl bzip2 g++ build-essential
     ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE=3 \
     ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60 \
     ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15 \
+    MAX_IMAGE_PIXEL="" \
+    IMAGE_COMPRESS_RATIO="" \
     BIGEVENTS_PATTERN="" \
     NOTIFY_DUE_DAYS_BEFORE_AND_AFTER="" \
     NOTIFY_DUE_AT_HOUR_OF_DAY="" \

+ 5 - 0
docker-compose.yml

@@ -232,6 +232,11 @@ services:
       #- ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
       #- ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
       #---------------------------------------------------------------
+      # ==== Allow to shrink attached/pasted image ====
+      # https://github.com/wekan/wekan/pull/2544
+      #-MAX_IMAGE_PIXEL=1024
+      #-IMAGE_COMPRESS_RATIO=80
+      #---------------------------------------------------------------
       # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
       # https://github.com/wekan/wekan/pull/2541
       # Introduced a system env var BIGEVENTS_PATTERN default as "due",

+ 5 - 0
releases/virtualbox/start-wekan.sh

@@ -36,6 +36,11 @@
         #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
         #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
         #---------------------------------------------------------------
+        # ==== Allow to shrink attached/pasted image ====
+        # https://github.com/wekan/wekan/pull/2544
+        #export MAX_IMAGE_PIXEL=1024
+        #export IMAGE_COMPRESS_RATIO=80
+        #---------------------------------------------------------------
         # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
         # https://github.com/wekan/wekan/pull/2541
         # Introduced a system env var BIGEVENTS_PATTERN default as "due",

File diff suppressed because it is too large
+ 0 - 0
snap-src/bin/config


+ 12 - 0
snap-src/bin/wekan-help

@@ -58,6 +58,18 @@ echo -e "\n"
 echo -e "Accounts lockout unknown users failure window, in seconds. Default: 15"
 echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-failure-window='15'"
 echo -e "\n"
+echo -e "Max image pixel: Allow to shrink attached/pasted image https://github.com/wekan/wekan/pull/2544"
+echo -e "Example:"
+echo -e "\t$ snap set $SNAP_NAME max-image-pixel='1024'"
+echo -e "Disabled:"
+echo -e "\t$ snap set $SNAP_NAME max-image-pixel=''"
+echo -e "\n"
+echo -e "Image compress ratio: Allow to shrink attached/pasted image https://github.com/wekan/wekan/pull/2544"
+echo -e "Example:"
+echo -e "\t$ snap set $SNAP_NAME image-compress-ratio='80'"
+echo -e "Disabled:"
+echo -e "\t$ snap set $SNAP_NAME image-compress-ratio=''"
+echo -e "\n"
 echo -e "BIGEVENTS DUE ETC NOTIFICATIONS https://github.com/wekan/wekan/pull/2541"
 echo -e "Big events pattern: Notify always due etc regardless of notification settings. Default: due, All: received|start|due|end, Disabled: NONE"
 echo -e "Default:"

+ 5 - 0
start-wekan.bat

@@ -21,6 +21,11 @@ SET PORT=2000
 REM # If you disable Wekan API with false, Export Board does not work.
 SET WITH_API=true
 
+REM # ==== Allow to shrink attached/pasted image ====
+REM # https://github.com/wekan/wekan/pull/2544
+REM SET MAX_IMAGE_PIXEL=1024
+REM SET IMAGE_COMPRESS_RATIO=80
+
 REM # ==== PASSWORD BRUTE FORCE PROTECTION ====
 REM #https://atmospherejs.com/lucasantoniassi/accounts-lockout
 REM #Defaults below. Uncomment to change. wekan/server/accounts-lockout.js

+ 5 - 0
start-wekan.sh

@@ -37,6 +37,11 @@
       #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
       #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
       #---------------------------------------------------------------
+      # ==== Allow to shrink attached/pasted image ====
+      # https://github.com/wekan/wekan/pull/2544
+      #export MAX_IMAGE_PIXEL=1024
+      #export IMAGE_COMPRESS_RATIO=80
+      #---------------------------------------------------------------
       # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
       # https://github.com/wekan/wekan/pull/2541
       # Introduced a system env var BIGEVENTS_PATTERN default as "due",

Some files were not shown because too many files changed in this diff