dotfiles/.local/bin/scripts/topng

5 lines
138 B
Plaintext
Raw Normal View History

2023-05-09 12:02:32 +00:00
#!/bin/sh
2023-09-11 23:16:35 +00:00
# Convert given file to PNG
pdftoppm -png "$@" >"$1.png" ||
convert -background white -alpha off -density 500 "$@" "$1.png"