Commit ae59364

xxwhirlpool  ·  2025-09-20 18:50:17 -0400 EDT
parent 24c068b
edit some scripts, add senpai TUI config
3 files changed,  +26, -2
+4, -0
......@@ -0,0 +1,4 @@
1+address "chat.4-walls.net:6697"
2+nickname "kat"
3+password-cmd cat "/home/kat/.ircpass"
4+on-highlight-beep true
+2, -2
......@@ -4,9 +4,9 @@
44
55 orig="$1_orig"
66
7-cp $1 $orig
7+cp "$1" "$orig"
88
9-magick $1 -level 0x70% -set option:distort:viewport '%wx%h+0+0' -colorspace CMYK -separate null: \( -size 2x2 xc: \( +clone -negate \) +append \( +clone -negate \) -append \) -virtual-pixel tile -filter gaussian \( +clone -distort SRT 60 \) +swap \( +clone -distort SRT 30 \) +swap \( +clone -distort SRT 45 \) +swap \( +clone -distort SRT 0 \) +swap +delete -compose Overlay -layers composite -set colorspace CMYK -combine -colorspace RGB "$1_ver1"
9+magick "$1" -level 0x70% -set option:distort:viewport '%wx%h+0+0' -colorspace CMYK -separate null: \( -size 2x2 xc: \( +clone -negate \) +append \( +clone -negate \) -append \) -virtual-pixel tile -filter gaussian \( +clone -distort SRT 60 \) +swap \( +clone -distort SRT 30 \) +swap \( +clone -distort SRT 45 \) +swap \( +clone -distort SRT 0 \) +swap +delete -compose Overlay -layers composite -set colorspace CMYK -combine -colorspace RGB "$1_ver1"
1010
1111 magick "$1_ver1" -colorspace gray "$1_ver2"
1212
+20, -0
......@@ -0,0 +1,20 @@
1+#!/usr/bin/env bash
2+#
3+# NOT BY ME
4+#
5+# from here:
6+#
7+# blog.nytsoi.net/2024/04/26/digital-retro-photography
8+
9+set -euxo pipefail
10+
11+INPUT=${1}
12+COLOURS=${2}
13+OUTPUT_SMOL=${INPUT}.webp
14+OUTPUT_BIG=${INPUT}-big.webp
15+
16+SMOL_SIZE=320
17+BIG_SIZE=2048
18+
19+magick "${INPUT}" -auto-orient -resize ${SMOL_SIZE}x${SMOL_SIZE} -colors "${COLOURS}" png:- | cwebp -q 100 -m 6 -lossless -progress -o "${OUTPUT_SMOL}" -- -
20+magick "${INPUT}" -auto-orient -resize ${SMOL_SIZE}x${SMOL_SIZE} -colors "${COLOURS}" -filter point -resize ${BIG_SIZE}x${BIG_SIZE} png:- | cwebp -q 100 -m 6 -lossless -progress -o "${OUTPUT_BIG}" -- -