Created
May 31, 2012 19:10
-
-
Save RedBeard0531/2845543 to your computer and use it in GitHub Desktop.
using convert with netpbm format
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
$ convert - /tmp/o.png << EOF | |
P1 | |
# This is an example bitmap of the letter "J" | |
6 10 | |
0 0 0 0 1 0 | |
0 0 0 0 1 0 | |
0 0 0 0 1 0 | |
0 0 0 0 1 0 | |
0 0 0 0 1 0 | |
0 0 0 0 1 0 | |
1 0 0 0 1 0 | |
0 1 1 1 0 0 | |
0 0 0 0 0 0 | |
1 1 1 1 1 1 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment