ppm p3 format

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
clueless

ppm p3 format

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: ppm p3 format

Post 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
Pierre.
clueless

still troubled :S

Post 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.
Guest

Post by Guest »

I found the solution! :)

nconvert -out ppm file.bmp

nconvert -ascii file.ppm

that does it.

thanks for the help.
Post Reply