diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-08-02 03:55:35 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-08-02 03:55:35 +0200 |
commit | 80914df09a95af07162e90f35ffbca561248885d (patch) | |
tree | 7cfbd4e8f450c5db77f9067d15cf6859928730a4 /process-img | |
parent | 5a92e842d4b3b45447284d93190c1b09394a1f30 (diff) |
Move scripts into aux/
Diffstat (limited to 'process-img')
-rwxr-xr-x | process-img | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/process-img b/process-img deleted file mode 100755 index ac25661..0000000 --- a/process-img +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -usage() -{ - echo 'Usage: process-img [-f fuzz] file...' >&2 - exit 1 -} - -while getopts 'f:' opt -do - case "$opt" in - f) - fuzz="$optarg" - ;; - *) - usage - esac -done - -shift $(($OPTIND - 1)) -[ "$#" -eq 0 ] && usage - -for img in "$@" -do - ( - read w h < <(identify -format "%w %h" "$img") - magick "$img" \ - -alpha on -fuzz ${fuzz:-3%} -fill none \ - -draw "color 0,0 floodfill" \ - -draw "color 0,$((h-1)) floodfill" \ - -draw "color $((w-1)),0 floodfill" \ - -draw "color $((w-1)),$((h-1)) floodfill" \ - "${img%.*}.avif" - ) & -done -wait
\ No newline at end of file |