Page 1 of 1

convert jpg to pbm

Posted: Mon Nov 30, 2009 12:32 pm
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

Re: convert jpg to pbm

Posted: Mon Nov 30, 2009 3:32 pm
by xnview
add: -binary dither

Re: convert jpg to pbm

Posted: Wed Mar 10, 2010 5:19 pm
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.

Re: convert jpg to pbm

Posted: Thu Mar 11, 2010 7:29 am
by xnview
add '-binary floyd'

Re: convert jpg to pbm

Posted: Thu Mar 11, 2010 4:40 pm
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

Re: convert jpg to pbm

Posted: Thu Mar 11, 2010 4:45 pm
by xnview
No try

Code: Select all

nconvert -out pbm -binary floyd mz.gif

Re: convert jpg to pbm

Posted: Thu Mar 11, 2010 4:58 pm
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?

Re: convert jpg to pbm

Posted: Fri Mar 12, 2010 3:15 pm
by xnview
Really??
Could you send me your jpg?