diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-01-08 05:31:17 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-01-08 05:31:17 +0100 |
| commit | 9ded4986b1d58eecb7dbb38635c76865d5358fda (patch) | |
| tree | a36b5b10d6b584755f440506c554e83d2118f766 /tools | |
| parent | 6f9218e3837e2f9ec00453df790de2435f4abc45 (diff) | |
| download | mitjafelicijan.com-9ded4986b1d58eecb7dbb38635c76865d5358fda.tar.gz | |
Moved dither scripts under tools
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/dither-images.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/dither-images.sh b/tools/dither-images.sh new file mode 100644 index 0000000..8852ce5 --- /dev/null +++ b/tools/dither-images.sh | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | cd assets/ | ||
| 2 | find . -type f \( -name "*.png" -o -name "*.jpg" \) | while read fname; do | ||
| 3 | echo "$fname" | ||
| 4 | convert "$fname" -type Grayscale -ordered-dither 2x2 "$fname.dith.gif" | ||
| 5 | done | ||
| 6 | |||
