From: Brian G. <ge...@ai...> - 2004-11-19 21:17:37
|
On Thu, 18 Nov 2004, Mark K. Kim wrote: > There are several variations in the PNM file format. To create the format > that Player/Stage can understand, you should make the picture GRAYSCALE > using a photo editing program, and when you save it tell it to save it in > BINARY PNM format (instead of ASCII PNM format.) > > The magic number "P5" is the first two characters that appear in the PNM > file. You should be able to read it right off the top if you open the > file with a text editor. The file you made probably is in a different > format (i.e., "P3".) Stage is *very* picky about the format of the bitmap. The easiest way to make a bitmap that it will accept is to use Gimp. Load the image with Gimp, then: Image->Mode->Grayscale File->Save As... Determine File Type: By Extension (name the file <something>.pnm and hit OK) Data Formatting: Raw (hit OK) brian. > > On Thu, 18 Nov 2004, tahir yaqub wrote: > >> Hi guys >> I have made a pnm file in a software called MapViewer >> and saved in a Player/Stage format (.pnm) in this >> software.But when I try to run stage with this file it >> shows following message: >> >> "image file is of incorrect type: should be pnm, >> binary, monochrome (magic number P5)" >> >> It is pnm already!!!What is the problem.?What is this >> magic number P5? >> >> Thanks in advance >> Tahir > > -- Brian P. Gerkey ge...@ai... Stanford AI Lab http://ai.stanford.edu/~gerkey |