Skip to content

Instantly share code, notes, and snippets.

@uilian
Last active January 30, 2020 13:59
Show Gist options
  • Save uilian/8c18c3fa5403c7476ed3e1a6c479b92b to your computer and use it in GitHub Desktop.
Save uilian/8c18c3fa5403c7476ed3e1a6c479b92b to your computer and use it in GitHub Desktop.
Export console text output to image
# text can be anything, 'ccow' below is an alias for:
# alias ccow='fortune | cowsay | lolcatjs'
convert
-size 500x500 \
xc:lightblue \
-font Courier -pointsize 12 \
-fill blue \
-gravity Northwest \
-draw "text 0,0 '$(ccow)'" \
image.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment