SVG to PNG conversion
This commit is contained in:
parent
14614ec75a
commit
c39f2222c3
@ -249,3 +249,12 @@ gh-emulated() {
|
|||||||
if ! command -v gh &> /dev/null; then
|
if ! command -v gh &> /dev/null; then
|
||||||
alias gh=gh-emulated
|
alias gh=gh-emulated
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Convert an SVG to a PNG
|
||||||
|
svg2png() {
|
||||||
|
if [ $# != 1 ]; then
|
||||||
|
echo "Usage: svg2png <file>"
|
||||||
|
else
|
||||||
|
inkscape -z "$1.png" "$1" --export-type=png
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user