Skip to content

Instantly share code, notes, and snippets.

@rg3
Created Dec 29, 2010
Embed
What would you like to do?
Shell script that created the hello.png image
#!/bin/sh
convert -density 72x72 -size 10000x5000 xc:white \
-font Liberation-Mono-Regular -pointsize 360 -fill grey -annotate +1120+1020 '#include <stdio.h>' \
-font Liberation-Mono-Regular -pointsize 360 -fill grey -annotate +1120+1740 'int main(void)' \
-font Liberation-Mono-Regular -pointsize 360 -fill grey -annotate +1120+2100 '{' \
-font Liberation-Mono-Regular -pointsize 360 -fill grey -annotate +1120+2460 ' printf(\"Hello, World!\\n\");' \
-font Liberation-Mono-Regular -pointsize 360 -fill grey -annotate +1120+2820 ' return 0;' \
-font Liberation-Mono-Regular -pointsize 360 -fill grey -annotate +1120+6340 '}' \
-font Liberation-Sans-Bold -pointsize 160 -fill \#eeccff -annotate +5020+4020 'Dennis M. Ritchie' \
-font Liberation-Sans-Italic -pointsize 160 -fill \#eeccff -annotate +5020+4180 'The C Programming Language, Second Edition' \
-font Liberation-Sans-Regular -pointsize 160 -fill \#eeccff -annotate +5020+4340 '1988' \
-channel RGBA -blur 5x5 \
-font Liberation-Mono-Regular -pointsize 360 -fill black -annotate +1100+1000 '#include <stdio.h>' \
-font Liberation-Mono-Regular -pointsize 360 -fill black -annotate +1100+1720 'int main(void)' \
-font Liberation-Mono-Regular -pointsize 360 -fill black -annotate +1100+2080 '{' \
-font Liberation-Mono-Regular -pointsize 360 -fill black -annotate +1100+2440 ' printf(\"Hello, World!\\n\");' \
-font Liberation-Mono-Regular -pointsize 360 -fill black -annotate +1100+2800 ' return 0;' \
-font Liberation-Mono-Regular -pointsize 360 -fill black -annotate +1100+3160 '}' \
-font Liberation-Sans-Bold -pointsize 160 -fill \#400040 -annotate +5000+4000 'Dennis M. Ritchie' \
-font Liberation-Sans-Italic -pointsize 160 -fill \#400040 -annotate +5000+4160 'The C Programming Language, Second Edition' \
-font Liberation-Sans-Regular -pointsize 160 -fill \#400040 -annotate +5000+4320 '1988' \
hello.png
display hello.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment