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
convert to pgm
Moderators: helmut, XnTriq, xnview
Re: convert to pgm
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
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