Skip to content

Instantly share code, notes, and snippets.

@ooharak
Last active August 29, 2015 14:05
Show Gist options
  • Save ooharak/9346ff235e380daf665d to your computer and use it in GitHub Desktop.
Save ooharak/9346ff235e380daf665d to your computer and use it in GitHub Desktop.
AWSシンプルアイコンをGraphviz等で使うときのTIPS ref: http://qiita.com/ooharak/items/12c3c812c2a30753f52e
$ find ~/Downloads/AWS_Simple_Icons_svg_eps/ -name '*Load\ Balancing.eps' -exec cp {} elb-org.eps \;
$ dosepsbin --eps-file elb.eps elb-org.eps
$ for n in *.eps; do gs -dNOPAUSE -dBATCH \
-q -sDEVICE=pngalpha -dEPSCrop -sOutputFile=- -r72 $n \
| convert -trim - ${n%eps}png; done
./epstrim.sh elb.eps | \
gs -dNOPAUSE -dBATCH -q -sDEVICE=svg -dEPSCrop -sOutputFile=out.svg -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment