convert jpg to pbm

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

Moderators: helmut, XnTriq, xnview

Post Reply
aeryen
Posts: 1
Joined: Mon Nov 30, 2009 12:28 pm

convert jpg to pbm

Post by aeryen »

So. How to convert a jpg or a gif to pbm?
cos if use the command: nconvert -out pbm house1.jpg
will get: This picture cannot be written using this format

thanks
User avatar
xnview
Author of XnView
Posts: 46616
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: convert jpg to pbm

Post by xnview »

add: -binary dither
Pierre.
Thanu
Posts: 3
Joined: Wed Mar 10, 2010 5:11 pm

Re: convert jpg to pbm

Post by Thanu »

I've have tried the commands 'nconvert -i me.gif -o pbm' and 'nconvert -out pbm me.gif' but both commands are giving a message saying 'Cant create file ,mz.gif'. Please help me with this.
User avatar
xnview
Author of XnView
Posts: 46616
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: convert jpg to pbm

Post by xnview »

add '-binary floyd'
Pierre.
Thanu
Posts: 3
Joined: Wed Mar 10, 2010 5:11 pm

Re: convert jpg to pbm

Post by Thanu »

Thanks for your reply, but still have not luck with it. I used the command 'nconvert -out pbm mz.gif -binary floyd'. I got the following error messages:
Can't create file <mz.gif>
Cant create file <-binary>
Cant create file <floyd>
Please help me with this asps. I am running the command in XnView folder, mz.gif file is located in there too.

Thanks
User avatar
xnview
Author of XnView
Posts: 46616
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: convert jpg to pbm

Post by xnview »

No try

Code: Select all

nconvert -out pbm -binary floyd mz.gif
Pierre.
Thanu
Posts: 3
Joined: Wed Mar 10, 2010 5:11 pm

Re: convert jpg to pbm

Post by Thanu »

well, the program is crashing each time i try to run that command.

Unhandled exception at 0x00528939 in nconvert.exe: 0xC0000005: Access violation reading location 0x0000000c.


is there any file format I should be trying from?
User avatar
xnview
Author of XnView
Posts: 46616
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: convert jpg to pbm

Post by xnview »

Really??
Could you send me your jpg?
Pierre.
Post Reply