When I use the function pgm_readpgminit(in, &cols, &rows, &maxval, &format), it occurs the folleowing error:Error reading magic number from Netpbm image stream, most offen, this means your input file is empty. I sincerely hope someone can help me. Thanks a lot.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What does the jpegtopnm.exe from the Netpbm package
(http://gnuwin32.sourceforge.net/packages/netpbm.htm)
do with a valid image, i.e what is the ouput of
jpegtopnm test.jpeg > test.pnm
where test.jpeg is a valid jpeg image and which is shown correctly by an image viewer.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I use the function pgm_readpgminit(in, &cols, &rows, &maxval, &format), it occurs the folleowing error:Error reading magic number from Netpbm image stream, most offen, this means your input file is empty. I sincerely hope someone can help me. Thanks a lot.
The documnentation, http://netpbm.sourceforge.net/doc/libpgm.html, seems to suggest that this is correct behavior: the file read is not a valid pgm image.
When I recompile jpegtopnm.c and run it, it occurs the following error:'Input stream is empty'. The jpeg image should be a valid image.
What does the jpegtopnm.exe from the Netpbm package
(http://gnuwin32.sourceforge.net/packages/netpbm.htm)
do with a valid image, i.e what is the ouput of
jpegtopnm test.jpeg > test.pnm
where test.jpeg is a valid jpeg image and which is shown correctly by an image viewer.
The jpegtopnm.exe from the Netpbm package runs well.
The jpegtopnm.exe from the Netpbm package runs well.