2011.06.15 09:25 "Re: [Tiff] bug in G4 encoder.", by Erik Thiele

2011.06.15 09:25 "Re: [Tiff] bug in G4 encoder.", by Erik Thiele

Am 15.06.2011 07:22, schrieb Lee Howard:

> Erik Thiele wrote:

>> there is a bug in the G4 encoder. attached to this email you find a file
>> "gimpcrop.g3.tiff". it is a correct TIFF file encoded with G3. you can
>> open it with the usual viewers.
>>
>> now do this:
>>
>> bughunt$ tiffcp -c g4 gimpcrop.g3.tiff out.tiff
>>
>> the file gets converted from G3 to G4. the following command shows that
>> the output file is corrupted.
>>
>> bughunt$ tiffcp out.tiff lala.tiff

>
> I cannot reproduce your problem with 4.0.0beta6.

The problem still exists on 4.0.0beta7:

tiff-4.0.0beta7$ ./configure --prefix=/home/global/erik/localinst/tiff-4.0.0beta7

tiff-4.0.0beta7$ make install

bughunt$ ldd ~/localinst/tiff-4.0.0beta7/bin/tiffcp
        linux-gate.so.1 => (0xb7709000)
        libtiff.so.5 =>
/home/global/erik/localinst/tiff-4.0.0beta7/lib/libtiff.so.5 (0xb769f000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7668000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7653000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb762d000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb74e7000)
        /lib/ld-linux.so.2 (0xb770a000)

bughunt$ ~/localinst/tiff-4.0.0beta7/bin/tiffcp -c g4 gimpcrop.g3.tiff lala.4.0.0beta7.tiff

bughunt$ display lala.4.0.0beta7.tiff display: lala.4.0.0beta7.tiff: Bad code word at line 17 of strip 9 (x 0). `Fax4Decode' @ warning/tiff.c/TIFFErrors/493. display: lala.4.0.0beta7.tiff: Premature EOL at line 17 of strip 9 (got 0, expected 4519). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703. display: lala.4.0.0beta7.tiff: Line length mismatch at line 44 of strip 9 (got 4520, expected 4519). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703. display: lala.4.0.0beta7.tiff: Line length mismatch at line 53 of strip 9 (got 4574, expected 4519). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703. display: lala.4.0.0beta7.tiff: Premature EOL at line 63 of strip 9 (got 72, expected 4519). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/703.

the pixel errors and the vertical black bar just look like on the other versions errors.

maybe you should try a debian squeeze install on a normal 32bit pc to reproduce the problem.

cu
Erik