dots


commit
aea468d
parent
ce4265f
author
chasinglightning
date
2025-07-26 20:41:33 -0400 EDT
add aesimg
1 files changed,  +15, -0
A config/.local/bin/aesimg
+15, -0
 1@@ -0,0 +1,15 @@
 2+#!/bin/bash
 3+#
 4+# usage: aesimg image_file_name
 5+
 6+orig="$1_orig"
 7+
 8+cp $1 $orig
 9+
10+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"
11+
12+magick "$1_ver1" -colorspace gray "$1_ver2"
13+
14+magick "$1_ver2" -ordered-dither h16x16o "$1"
15+
16+rm -rf "$1_ver1" "$1_ver2"