Page 1 of 1

Make a picture from text

Posted: 2011-04-25T11:34:21-07:00
by ghostmansd
I know that it is possible to make a bitonal picture from text. For example, to make pbm file with letter "J" you have to enter something like that:

Code: Select all

P1
# This is an example bit map file j.pbm
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
0 0 0 0 0 0
I want to make this picture don't having a copy of it. Here is link to picture. Can I make exact copy of this.

Re: Make a picture from text

Posted: 2011-04-25T11:39:34-07:00
by ghostmansd
Thank to everyone, question is solved. You have to use pnmtoplainpnm.

Re: Make a picture from text

Posted: 2011-04-26T05:53:21-07:00
by anthony
There are three equivelent 'noraw' or 'plain' NetPBM/PbmPlus commands you can use.
See IM Examples, Common Fomrats, PbmPlus
http://www.imagemagick.org/Usage/formats/#pbmplus