|
|
On Tue, 2 Oct 2001 17:36:35 -0500, Mike Hough wrote:
>> There should be 16384 words for the data, plus 2 for the size, one for the
>> max, and one more for the header. It's short by 6 words. However, this
>> might be an issue with the encoding; perhaps you can zip your image and
>> repost it in the binaries group?
>
>I doubt this is an encoding problem, since the file is ASCII text. Why
>would it need a word to represent the header and the size? I'm not sure of
>the max either. They are ASCII codes. Technically it should be possible to
>write a PGM file in a word processor and have it work. It almost seems like
>the file is being read in binary. I'm going to upload a much smaller PGM
>file to the binaries group that's easier to dissect.
By "a word" I meant a group of characters delimited by whitespace, not
two bytes. That's what wc -w counts. Trust me, that file was short by
six numbers.
However, I'll test with the file you've just provided and see if the problem
looks like the problem with PNG files.
--
#macro R(P)z+_(P)_(P)_(P+1)_(P+1)+z#end#macro Q(C)bicubic_patch{type 1u_steps 6
v_steps 6R(1)R(3)R(5)R(7)translate 9*z-2pigment{rgb z}}#end#macro _(__)#local X=
asc(substr(C,__,1))-65;<mod(X,4)div(X,4)>#end#local O=union{Q("ABEFUQWS")Q(//RON
"WSXTLOJN")}Q("JNKLCGCD")union{O}union{O translate 3*x}light_source{x 1}//PARKER
Post a reply to this message
|
|