Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#162258 - 20/05/2003 14:25 netpbm
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
Have any of you guys (or girls) used the postscript text function in netpbm? I've written a shell script to grab a frame from a wintv card, stick the time and date on it and then stick it on a server. So far I've been using pbmtext but i'd really like to use pbmtextps so I can use a nice font instead. Problem is the pbmtextps app complains:

Error reading magic number from Netpbm image stream

The wierd thing is that the error comes from pnmcrop and not pbmtextps.

Any ideas?
_________________________
Cheers,

Andy M

Top
#162259 - 20/05/2003 14:45 Re: netpbm [Re: andym]
David
addict

Registered: 05/05/2000
Posts: 623
Loc: Cambridge
If you don't find a solution to your problem, give Image Magick a try http://www.imagemagick.org/

Top
#162260 - 20/05/2003 14:52 Re: netpbm [Re: andym]
jaharkes
enthusiast

Registered: 20/08/2002
Posts: 340
Loc: Pittsburgh, PA
Never heard of pbmtextps, but I believe you can specify a specific font to use for pbmtext. So if you just want to use a different or prettier font,

pbmtext -font '-adobe-times-medium-r-*-*-24-*-*-*-*-*-*-*'

You can play around with xfontsel to see what fonts are available on your system.
_________________________
40GB - serial #40104051 gpsapp

Top
#162261 - 21/05/2003 10:45 Re: netpbm [Re: jaharkes]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
I tried that but the app said it couldn't find the font. On closer inspection it seems the font files needed are of the BDF variety. I can't seem to find any on my system. Oh well, off to try imagemagik now.
_________________________
Cheers,

Andy M

Top