Skip to content

Instantly share code, notes, and snippets.

@jdoxey
Created April 25, 2020 06:45
Show Gist options
  • Save jdoxey/bc1cf5f860096deb1a3dd71d6b5a64c3 to your computer and use it in GitHub Desktop.
Save jdoxey/bc1cf5f860096deb1a3dd71d6b5a64c3 to your computer and use it in GitHub Desktop.
Generate PlantUML sprite from any image
#!/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