pgn_to_gif.sh: set execute permissions, imagemagick convert command - chess-puzzles - chess puzzle book generator
HTML git clone git://git.codemadness.org/chess-puzzles
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0f3f6671fc38cbb90e2068eea20b680706d64b6c
DIR parent ba83e5c98028bd2bc0e46840cb7004a8c9549b79
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 3 Apr 2026 13:13:30 +0200
pgn_to_gif.sh: set execute permissions, imagemagick convert command
In newer versions this gives a warning to use "magick" instead of "convert" or
"imagemagick convert".
Diffstat:
M moves.sh | 10 +++++++++-
M pgn_to_gif.sh | 0
2 files changed, 9 insertions(+), 1 deletion(-)
---
DIR diff --git a/moves.sh b/moves.sh
@@ -1,5 +1,10 @@
#!/bin/sh
# make a list of moves from start to end for each move.
+# writes output to stdout.
+
+# old deprecated command: gives a warning on some systems.
+#convert="convert"
+convert="magick"
# output moves to tty with some delay.
# Show PGN and human speech-like text for the moves.
@@ -27,8 +32,11 @@ output_gif() {
./fen -o svg "$fen" "$moves" > "$f"
test -s "$f" || break
+ # DEBUG
+ #printf 'Processing moves: %s\n' "$moves" >&2
+
dest="$tmpdir/$n.png"
- convert "$f" "$dest"
+ $convert "$f" "$dest"
n=$((n + 1))
done
DIR diff --git a/pgn_to_gif.sh b/pgn_to_gif.sh