Page 1 of 1

ppm p3 format

Posted: Mon Mar 03, 2008 9:51 am
by clueless
Hello, can you help me, please?
I need to convert some .bmp files to ppm format, in ASCII. For example, for a file file.bmp, which would be the command to use in nconvert?

nconvert -ppm file.bmp

this changes it to ppm, but binary mode: P6....how to convert it to ppm P3?
thanks.

Re: ppm p3 format

Posted: Mon Mar 03, 2008 10:05 am
by xnview
clueless wrote:Hello, can you help me, please?
I need to convert some .bmp files to ppm format, in ASCII. For example, for a file file.bmp, which would be the command to use in nconvert?

nconvert -ppm file.bmp

this changes it to ppm, but binary mode: P6....how to convert it to ppm P3?
thanks.
Use -ascii

still troubled :S

Posted: Mon Mar 03, 2008 10:23 am
by clueless
I'm sorry, it still doesn't work :\

now for some reason

nconvert -ppm file.bmp

says bad argument -'ppm'.

The trick, I think, would be to change the .bmp first into .ppm, and then use -ascii to convert this ppm to pp3...right?

Which commands should I use?
thanks.

Posted: Mon Mar 03, 2008 10:35 am
by Guest
I found the solution! :)

nconvert -out ppm file.bmp

nconvert -ascii file.ppm

that does it.

thanks for the help.