dotfiles/.local/bin/scripts/topng

5 lines
138 B
Bash
Executable File

#!/bin/sh
# Convert given file to PNG
pdftoppm -png "$@" >"$1.png" ||
convert -background white -alpha off -density 500 "$@" "$1.png"