Created
March 5, 2024 21:35
-
-
Save ebeigarts/3533b920696f68cbd7564832a7d4aa4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
rsvg-convert $1 -z 4 -o /tmp/temp.png | |
~/Downloads/vtracer-mac-arm64 -c 32 --mode spline --preset poster \ | |
--input /tmp/temp.png \ | |
--output /tmp/temp.svg | |
rsvg-convert -f svg /tmp/temp.svg -z 0.25 -o /tmp/temp2.svg | |
svgo /tmp/temp2.svg -o /tmp/temp3.svg | |
rm $1 | |
mv /tmp/temp3.svg $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment