AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

1997.03.11 23:36 "bug fix in tiffmedian (libtiff v3.3beta)", by Helge Blischke

tiffmedian from the distribution forgest the last row of an image iff floyd-steinberg dithering is selected. By the time being I don't know if this has been corrected in the latest release, so I include the diff of the modification I've made:

789c789
<       for (i = 1; i <= imagelength; ++i) {    /* SRZB 1997-03-11/Bl */
---
>       for (i = 1; i < imagelength; ++i) {
791,792c791,792
<               lastline = (i >= imax);         /* SRZB 1997-03-11/Bl */
<               if (i <= imax) GetInputLine(in, i, break);
---
>               lastline = (i == imax);
>               GetInputLine(in, i, break);

H. Blischke