Menu

Error reading magic number from Netpbm image

Help
rxw
2007-04-02
2012-07-26
  • rxw

    rxw - 2007-04-02

    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.

     
    • Kees Zeelenberg

      Kees Zeelenberg - 2007-04-02

      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.

       
      • rxw

        rxw - 2007-04-03

        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.

         
        • GnuWin

          GnuWin - 2007-04-03

          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.

           
          • rxw

            rxw - 2007-04-04

            The jpegtopnm.exe from the Netpbm package runs well.

             
    • rxw

      rxw - 2007-04-03
      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.
      
       
    • rxw

      rxw - 2007-04-03

      The jpegtopnm.exe from the Netpbm package runs well.

       
MongoDB Logo MongoDB