diff options
| -rw-r--r-- | .env.example | 4 | ||||
| -rwxr-xr-x | imggen | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.env.example b/.env.example index af9e26e..94f2987 100644 --- a/.env.example +++ b/.env.example @@ -3,5 +3,9 @@ IMGGEN_OUT=/path/to/output IMGGEN_CACHE=/path/to/model-cache # IMGGEN_PORT=8765 # IMGGEN_MODEL=sdxl +# Default image size when no -W/-H is passed. Must be multiples of 8 (SDXL constraint). +# 1280x960 = landscape; omit both to fall back to 1024x1024 (square). +# IMGGEN_WIDTH=1280 +# IMGGEN_HEIGHT=960 # IMGGEN_UID=1000 # IMGGEN_GID=100 @@ -65,7 +65,8 @@ esac # --- prompt path --- PROMPT="$1"; shift -MODEL=""; NEG=""; STEPS=""; GUID=""; SEED=""; OUT=""; W=""; H="" +MODEL=""; NEG=""; STEPS=""; GUID=""; SEED=""; OUT="" +W="${IMGGEN_WIDTH:-}"; H="${IMGGEN_HEIGHT:-}" while [ "$#" -gt 0 ]; do case "$1" in -m|--model) MODEL="$2"; shift 2 ;; |
