2005.05.05 05:17 "[Tiff] TIFF2PDF Bug resolved + proposed enhancement", by Bruno Ledoux

2005.05.05 20:49 "Re: [Tiff] TIFF2PDF Bug resolved + proposed enhancement", by Andrey Kiselev

I solved a bug in the tiff2pdf tool (libtiff v3.7.2) and added an new functionnality.

The bug appears when converting Monochrome (1bit/pixel) tiled images. It affects more generally all tiled images with less than 8bits per pixel. The problem is that all the tiles on the left/right edges are incorrectly converted due to an error in the calculation of the edgescanwidth parameter.

The new functionnality I added is to set the Interpolate flag to true in the image dictionnary of the generated PDF. By default, this flag is set to false, but with some PDF viewers it has to be activated to improve the display quality of monochrome screened images.

I attached the result of a diff between the current version and my version of tiff2pdf.

Bruno,

thank you, your patch applied. Please, use the uniform diffs (diff -u option) next time.

Best regards,
Andrey

Andrey V. Kiselev
Home phone: +7 812 5970603 ICQ# 26871517