[arachne] Re: BMP files not displayed correctly (was Verification....).
- From: "Michal H. Tyc" <mht@xxxxxxxxxxxxxxxx>
- To: arachne@xxxxxxxxxxxxx
- Date: Sat, 08 May 2004 01:10:39 +0100
Arachne at FreeLists---The Arachne Fan Club!
On Fri, 7 May 2004 13:26:04 +0100, John Sparks wrote:
> Small .bmp files from 0spam.com are mangled by Arachne. The file left
> in cache displays OK in other apps. An example has been placed at
> http://www.johncsparks.plus.com/4810.bmp
> You should be able to read the digits 4810
Let's see what can be done...
HDRAWBMP.C is a piece of cr*p. I just fixed an obvious bug resulting
in wrong rounding of number of bytes per line in BMP image. The image
is no longer skewed, as you can see in the attachment (if it passes
-- this is why I made it UU instead of MIME; use UUDECODE on .CNM/.MES
file if it isn't automatically processed). Anyway, I still have to read
BMP file format docs more carefully (or even find better docs than these
I have), because the rounding I fixed was just mathematically incorrect
(and encoded in far too many instructions, BTW), and I have to learn
whether the whole algorithm is OK.
However, the image is still somehow garbled, even if the digits can be
read, and I seem to know why -- one of the variables is used in a very
strange way; the problem is that I haven't yet figured out from
the 250 lines long loop what is this variable exactly used for ;-)
As a surprise-bonus (not for me, this behavior is directly related to the
abovementioned variable), the vertical lines are displayed as straight
when the image isn't put in the top left corner of the screen (e.g., when
it is embedded in a test HTML page).
Anyway, you may consider the problem as addressed and already partially
fixed. Quite quickly, eh? ;-)
Greetings,
Michal
begin 644 page1.gif
M1TE&.#=A7@!2`)<````````0&!@L,#!$2$A@8&A\>("`@("$@("8D*"@H)BP
MJ,#$P+#,P,CHX.#@X/C\^```````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````"P`````7@!2``<(_``?"!Q(L*#!@P@3*ES(L*'#
MAQ`C2IRXH*+%BQ@S:MS(L:/'CR`7"`Q)LJ3)DQ]'HES)LB5'E1@5BGQ@D69-
MFRYS@H1Y$:=&G#Q]E@1`M"B`BT<W)C5:E&-2GB$-5#1@4ZK(J2:3(K5(5&/7
M!5JY>H1ZT8#9J6;-/E"+]>H"JP,_AA4+=F[%KW;!=B0;LZU;H6ZE\O5*6._<
MHTL+8WP*N._;FGZG5AVLF*[AQ7HS8\[(>*S?R6BI2@[MD6G3NZA3)][,N2)E
MUY]'/P[<V&IKUJLS+S7MU'7CGK'?5H4M7*-MUEMUT\TMU[?GV;3;@GZ;]FSE
MY6*U,B_M?&]PT?NSA]_D?EN[YNT=.WN'+AXX]++'D\L/2S\U2/4?X[^'KM^Z
M5]Z6::9<2/AUY!]:%J6%8(('ZI33:PY&*.%,$U9H87<79JB30-5UZ.&'((8H
MXH@DEOCA6B:FJ.**+))HVHLPQBCCC#36:*-1$^6HXXX\]NCCCS)I*&1+$`ZY
M0`)()JGDDDPVZ:2310Z90(M45C<862HAU--O&4UI9$R_-0;4<R!Y^>5X/T4V
MW4N1;63FF12F^=YT';JG7Y?'G1;@77F%=*6:LMFF$GAW8O1FGTJQ].><@1*4
M8'L<>0E@77D=IB>?2"UZW)H9L;6?1H<F>IM]`GYUEZ9VUG86I/MNVM9GI4@Q
ME1ZJD!5'G7ZL@NJJJ,@ARAFM<1*Z4:YX[FELJ4[-5:2C@=8JF&1QZ4JIGK+R
M2:U1L8)YDJ>%<EDLG'&2=&"A'.GWYIE%>@A?IV>!^"V<40IY[I?Q:I@`D!*!
MJY$#_/;KK[\`!RSPP/YR6.7!""=,E<(,-YSBC1!'+/'$,>IK<4<--!!`QAQW
MO''''H,<LL@9?TRRR04@,/+)))<L,D8!Q"SSS#37;//-..>L\\XZ8^1RRR:+
M'#3(&S-@--$M:YQQ`0$(L++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