Mineclonia/menu/icon.png.do
2021-08-24 03:31:58 +02:00

15 lines
446 B
Text

#!/bin/sh
set -eu
SVG_FILE=${2%.png}.svg
# How crisp a Minetest menu icon appears is influenced by image height
# and width. Low resolutions lead to blurry edges, as Minetest scales
# menu icons up. High resolutions lead to jagged edges, as Minetest
# scales menu icons down. Height & width of 72 pixes seem to work.
>&2 inkscape \
--file="${SVG_FILE}" \
--export-png="${3}" \
--export-area-page \
--export-height 72 \
--export-width 72 \