convert to pgm

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
mj0000
Posts: 2
Joined: Mon Apr 26, 2010 1:44 pm

convert to pgm

Post by mj0000 »

I would like to convert pictures to pgm

xnview conversion is ok BUT I would like to have the pgm numbers stored in lines and columns

do you know how to do that ?

thanks in advance for your answer
User avatar
xnview
Author of XnView
Posts: 46620
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: convert to pgm

Post by xnview »

Sorry but i don't understand what you means?
Pierre.
mj0000
Posts: 2
Joined: Mon Apr 26, 2010 1:44 pm

Re: convert to pgm

Post by mj0000 »

ok, I'll try to better explain

I would like to have a pgm file where numbers (gray levels) are ordered by lines like in the picture.
For example if a have a picture 5*3, I would like to have a pgm file like this :
P2
5 3
255
45 45 45 45 82
45 45 45 45 82
45 45 45 45 82

When I use Xnview to convert the file from jpeg to pgm, I get :
P2
5 3
255
45 45 45 45 82 45 45 45 45 82 45 45 45 45 82
Post Reply