Make a picture from text

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ghostmansd
Posts: 24
Joined: 2011-03-21T09:27:47-07:00
Authentication code: 8675308

Make a picture from text

Post 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.
ghostmansd
Posts: 24
Joined: 2011-03-21T09:27:47-07:00
Authentication code: 8675308

Re: Make a picture from text

Post by ghostmansd »

Thank to everyone, question is solved. You have to use pnmtoplainpnm.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Make a picture from text

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply