Skip to content

Commit

Permalink
layout image renderer: change deprecated way of calling imagemagick
Browse files Browse the repository at this point in the history
  • Loading branch information
burkfers committed Oct 11, 2024
1 parent 0091f01 commit 4913252
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/pics/layouts/render_full_boards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ ensure_exists_in_path() {
}

ensure_exists_in_path keymap
ensure_exists_in_path convert
ensure_exists_in_path magick

for board in cnano cmini charybdis skeletyl tbkmini scylla dilemma dilemma_max; do
echo $board
keymap draw $board.yaml > $board.svg
convert -size 800x800 -background '#303030' $board.svg $board.png
magick -size 800x800 -background '#303030' $board.svg $board.png
done
echo done!
4 changes: 2 additions & 2 deletions assets/pics/layouts/render_single_layers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ensure_exists_in_path() {
ensure_exists_in_path yq
ensure_exists_in_path tr
ensure_exists_in_path keymap
ensure_exists_in_path convert
ensure_exists_in_path magick

for board in cnano cmini charybdis skeletyl tbkmini scylla dilemma dilemma_max; do
echo $board
Expand All @@ -19,6 +19,6 @@ for board in cnano cmini charybdis skeletyl tbkmini scylla dilemma dilemma_max;
layer_safe=${layer//\//_} # replace slash with underscore

keymap draw -s "$layer" -- $board.yaml > $board/$layer_safe.svg
convert -size 800x800 -background '#303030' "$board/$layer_safe.svg" "$board/$layer_safe.png"
magick -size 800x800 -background '#303030' "$board/$layer_safe.svg" "$board/$layer_safe.png"
done
done

0 comments on commit 4913252

Please sign in to comment.