POV-Ray : Newsgroups : povray.programming : PGM (P2) not read according to specs : PGM (P2) not read according to specs Server Time
18 May 2024 19:47:05 EDT (-0400)
  PGM (P2) not read according to specs  
From: Philipp
Date: 14 Mar 2007 11:10:55
Message: <45f81e8f$1@news.povray.org>
Hello
In PovRay 3.6.1c.icl8.win32 a well formed PGM format (according to specs 
at http://netpbm.sourceforge.net/doc/pgm.html) brings up "Parse Error: 
Cannot read image data from PGM file"

File giving error is:
P2
5 4 170
147 148 150 153 153
153 151 130 110 146
155 113 121 131 145
149 159 160 158 150


Notice that between the height value (4) and the MaxVal (170) there is a 
space and not a newline. If you replace by a newline it works.
The specs say that this should be a "Whitespace". I guess that this 
means  (blanks, TABs, CRs, LFs). So blank should work.

Hope this helps. Best regards

Phil


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.