Changes in TIFF v3.8.1 — LibTIFF 4.6.0t documentation

# Changes in TIFF v3.8.1

References
Current Version | v3.8.1 (tag %sRelease-v3-8-1)
Previous Version | v3.8.0
Master Download Site | https://download.osgeo.org/libtiff/
Master HTTP Site | http://www.simplesystems.org/libtiff/

This document describes the changes made to the software between the previous and current versions (see above). If you don’t find something listed here, then it was not done in this timeframe, or it was not considered important enough to be mentioned. The following information is located here:

## Major changes

- Bug-fix release.

## Software configuration changes

- libtool related stuff updated from the 2.1a branch.

- Fix `with_default_strip_size` comparison as reported by Norihiko Murase.

## Library changes

- `tif_dirread.c`: Fixed error reporting in `TIFFFetchAnyArray()` function as per bug Remote Sensing bugzilla #%s [no longer available]1102

- `tif_jpeg.c`, `tif_pixarlog.c`, `tif_fax3.c`, `tif_zip.c`: Properly restore `setfield`/`getfield` methods in cleanup functions. As per bug Remote Sensing bugzilla #%s [no longer available]1102

- `tif_lzw.c`, `tif_pixarlog.c`, `tif_zip.c`: Use `TIFFPredictorCleanup()` in codec cleanup methods. As per bug Remote Sensing bugzilla #%s [no longer available]1102

- `tif_predict.c`, `tif_predict.h`: Added new function `TIFFPredictorCleanup()` to restore parent decode/encode/field methods.

- `tif_dirread.c`: Fixed integer overflow condition in `TIFFFetchData()` function. As per bug Remote Sensing bugzilla #%s [no longer available]1102

- `tif_ojpeg.c`: Set the `ReferenceBlackWhite` with the `TIFFSetField()` method, not directly. As per bug Remote Sensing bugzilla #%s [no longer available]1043

- `tif_write.c`: Small code rearrangement in `TIFFWriteScanline()` to avoid crash as per bug Remote Sensing bugzilla #%s [no longer available]1081

- `tif_dirwrite.c`: Properly write `TIFFTAG_DOTRANGE` tag as per bug Remote Sensing bugzilla #%s [no longer available]1088

- `tif_print.c`: Properly read `TIFFTAG_PAGENUMBER`, `TIFFTAG_HALFTONEHINTS`, `TIFFTAG_YCBCRSUBSAMPLING` and `TIFFTAG_DOTRANGE` tags as per bug Remote Sensing bugzilla #%s [no longer available]1088

- `tif_tile.c`: Fix error reporting in `TIFFCheckTile()` as per bug Remote Sensing bugzilla #%s [no longer available]1063

- `tif_color.c`: Avoid overflow in case of wrong input as per bug Remote Sensing bugzilla #%s [no longer available]1065

- `tif_dirinfo.c`: Use `TIFF_NOTYPE` instead of 0 when appropriate. As per bug Remote Sensing bugzilla #%s [no longer available]1033

- `tif_aux.c`: Fixed type of temporary variable in `_TIFFCheckMalloc()` as per bug Remote Sensing bugzilla #%s [no longer available]103

- `tif_aux.c`: Return static array when fetching default `YCbCrCoefficients` (another problem, reported a the Remote Sensing bugzilla #%s [no longer available]1029 entry).

- `tif_dir.c`: Special handling for `PageNumber`, `HalftoneHints`, `YCbCrSubsampling` and `DotRange` tags as per bugs Remote Sensing bugzilla #%s [no longer available]1029 Remote Sensing bugzilla #%s [no longer available]1034

- `tif_dirread.c`: Use `_TIFFGetExifFieldInfo()` instead of `_TIFFGetFieldInfo()` in `TIFFReadEXIFDirectory()` call as per bug Remote Sensing bugzilla #%s [no longer available]1026

- `tif_dirinfo.c`: Change definitions for `TIFFTAG_ICCPROFILE`, `TIFFTAG_PHOTOSHOP`, `TIFFTAG_RICHTIFFIPTC`, `TIFFTAG_XMLPACKET`: readcount should be `uint32` value.

## Tools changes

- `ppm2tiff.c`: Added support for PBM files as per bug Remote Sensing bugzilla #%s [no longer available]1044

- `tiff2pdf.c`: Functions `t2p_sample_rgbaa_to_rgb()` and `t2p_sample_rgba_to_rgb()` was used in place of each other, that was resulted in problems with RGBA images with associated alpha. As per bug Remote Sensing bugzilla #%s [no longer available]1097

- `tiff2ps.c`: Properly scale all the pages when converting multipage TIFF with /width/height/center options set. As per bug Remote Sensing bugzilla #%s [no longer available]1080

- `tiff2pdf.c`: Do not create output file until all option checks will be done. As per bug Remote Sensing bugzilla #%s [no longer available]1072

- `bmp2tiff.c`: Added ability to create multipage TIFFs from the list of input files as per bug Remote Sensing bugzilla #%s [no longer available]1077

- `tiffgt.c`: Avoid crashing in case of image unsupported by TIFFRGBAImage interface.

- `tiff2pdf.c`: Fixed support for non-YCbCr encoded JPEG compressed TIFF files, per submission from Dan Cobra.

- bmp2tiff, pal2rgb, ppm2tiff, ras2tiff, raw2tiff, sgi2tiff, tiff2bw, tiffcp: Fixed jpeg option processing so `-c jpeg:r:50` works properly as per bug: Remote Sensing bugzilla #%s [no longer available]1025

## Contributed software changes

None.