Created
April 25, 2020 06:45
-
-
Save jdoxey/bc1cf5f860096deb1a3dd71d6b5a64c3 to your computer and use it in GitHub Desktop.
Generate PlantUML sprite from any image
This file contains 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/sh | |
# requires imagemagick and plantuml | |
convert $1 -colorspace Gray -resize 16x16 -flatten /tmp/sprite.png | |
java -jar ~/bin/plantuml.jar -encodesprite 16 /tmp/sprite.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment