2009.12.28 19:46 "Re: [Tiff] bug in tiff2pdf, when handling Lab images", by Manlio Perillo

2009.12.28 17:56 "Re: [Tiff] bug in tiff2pdf, when handling Lab images", by Sergius Bobrovsky

Hello,

recently, I've faced this problem too. trying to fix this bug i found that tiff2pdf just do not write /BlackPoint before second array.

in other words, correct dictionary should be something as following:

/ColorSpace [/Lab <<
/WhitePoint [0.9643 1.0000 0.8251]
/BlackPoint [0.9643 1.0000 0.8251]
/Range [-127 127 -127 127]
>>]

it can be achieved by simply adding written += t2pWriteFile(output, (tdata_t)"/BlackPoint ", 12); before

X_W = 0.3457F; /* 0.3127F; */ /* D50, commented D65 */

On Mon, Dec 28, 2009 at 10:28 PM, Manlio Perillo <manlio.perillo@gmail.com> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I have found a bug in tiff2pdf, when embedding a TIFF images having a Lab color space.

I'm reporting the bug here, since on the libtiff web site (http://www.libtiff.org/bugs.html), the link to the bug traker is broken: http://bugzilla.remotesensing.org/buglist.cgi?product=libtiff

By the way, the link to this mailing list is broken, too.

The problem is with tiff2pdf writing two times the WhitePoint entry in the Lab dictionary:

/ColorSpace [/Lab <<

/WhitePoint

[0.9643 1.0000 0.8251]

[0.9643 1.0000 0.8251]

> /Range [-127 127 -127 127]
>>>]
>
>
>
> Regards  Manlio Perillo

iEYEARECAAYFAks43MgACgkQscQJ24LbaUSGBQCfRx/KllvGYAugYS8Y+B6It6oH 3KsAn07uuSp+2clGShZ+UaKq67ng5inw

=vMdm

-----END PGP SIGNATURE-----

--
Sergius Bobrovsky