From 0247755f76f80ac79c8125c38c006205ead52eb5 Mon Sep 17 00:00:00 2001 From: Marcus Date: Fri, 5 Jan 2024 04:37:52 +0100 Subject: [PATCH] allow to adjust LOLFIELDSIZE --- README.md | 2 ++ pixelfloot_bash.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4206588..a641706 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ pixelfloot was built during the 37c3. in its actual state, its just a mess. I ho - increase No of concurrent connections: `FLOOTFORKS=8 ./pixelfloot_bash.sh floot images/lucky-cat.jpg` - specify IP and PORT: `IPFLOOT=127.0.0.1 FLOOTPORT=1337 ./pixelfloot_bash.sh floot images/lucky-cat.jpg` - for drawing big areas, like 1280x720, use LARGE mode: `LARGE=true ./pixelfloot_bash.sh floot images/xphg.jpg` + - default field size are 64k lines. You can adjust it with LOLFIELDSIZE: + `LOLFIELDSIZE=16000 LARGE=true ./pixelfloot_bash.sh floot images/xphg.jpg` ```shell $ ./pixelfloot_bash.sh help diff --git a/pixelfloot_bash.sh b/pixelfloot_bash.sh index 2aee56a..40ae7ee 100755 --- a/pixelfloot_bash.sh +++ b/pixelfloot_bash.sh @@ -327,7 +327,7 @@ loadLOL() { if [ $LARGE ] then LOL_org="$(echo "$LOL_org" | shuf)" - LOLFIELDSIZE=64000 + test -z "$LOLFIELDSIZE" && LOLFIELDSIZE=64000 # line counter L=1 LINES="$(echo "$LOL_org" | wc -l )" @@ -552,7 +552,7 @@ case $1 in echo "IPFLOOT(string), FLOOTPORT(int), USECACHE(bool), FLOOTFORKS(int)" echo "SIZE(int), TEXT(string), FONTSIZE(int), BGCOLOR(hex), COLOR(hex)" echo "BORDERCOLOR(hex), X(int), Y(int), X_MAX(int), Y_MAX(int), H(int), W(int)" - echo "RESIZE(int), ALPHACOLOR(hex), BOUNCESTEP(int), LARGE(bool)" + echo "RESIZE(int), ALPHACOLOR(hex), BOUNCESTEP(int), LARGE(bool), LOLFIELDSIZE(int)" exit 1 ;;