| 1 |
Changes in TIFF v3.5.7 |
| 2 |
====================== |
| 3 |
|
| 4 |
.. table:: References |
| 5 |
:widths: auto |
| 6 |
|
| 7 |
====================== ========================================== |
| 8 |
Current Version v3.5.7 (:tag:`Release-v3-5-7`) |
| 9 |
Previous Version :doc:`v3.5.6beta <v3.5.6beta>` |
| 10 |
Master Download Site `<https://download.osgeo.org/libtiff/>`_ |
| 11 |
Master HTTP Site `<http://www.simplesystems.org/libtiff/>`_ |
| 12 |
====================== ========================================== |
| 13 |
|
| 14 |
This document describes the changes made to the software between the |
| 15 |
*previous* and *current* versions (see above). |
| 16 |
If you don't find something listed here, then it was not done in this |
| 17 |
timeframe, or it was not considered important enough to be mentioned. |
| 18 |
The following information is located here: |
| 19 |
|
| 20 |
|
| 21 |
Software configuration changes |
| 22 |
------------------------------ |
| 23 |
|
| 24 |
* :file:`libtiff/libtiff.def`: Brent Roman submitted new version adding |
| 25 |
several missing entry points. Also add a few other entry points |
| 26 |
later. |
| 27 |
|
| 28 |
* :file:`configure`, :file:`Makefile.in`, etc: added support for ``OPTIMIZER`` being |
| 29 |
set from :file:`config.site`. |
| 30 |
* :file:`config.guess`: updated wholesale to an FSF version apparently |
| 31 |
from 1998 (as opposed to 1994). This is mainly inspired by |
| 32 |
providing for MacOS X support. |
| 33 |
|
| 34 |
* :file:`configure/config.site`: modified to check if ``-lm`` is needed for |
| 35 |
``MACHDEPLIBS`` if not supplied by :file:`config.site`. Needed for Darwin. |
| 36 |
* :file:`libtiff/tiff.h`: Applied hack to try and resolve the problem |
| 37 |
with the :file:`inttypes.h` include file on AIX. (bug :bugzilla-rs:`39`) |
| 38 |
|
| 39 |
* :file:`configure`, :file:`*Makefile.in`: Various changes to improve configuration |
| 40 |
for HP/UX specifically, and also in general. (bug :bugzilla-rs:`40`) They include: |
| 41 |
|
| 42 |
* Try to handle :program:`/usr/bin/sh` instead of :program:`/bin/sh` where necessary. |
| 43 |
* Upgrade to HP/UX 10.x+ compiler, linker and dso options. |
| 44 |
* Fixed :c:func:`mmap` test to avoid ``MMAP_FIXED`` ... it isn't available on HP |
| 45 |
* Use ``-${MAKEFLAGS}`` in sub makes from makefiles. |
| 46 |
* Fixed ``SCRIPT_SH``/``SHELL`` handling. |
| 47 |
|
| 48 |
* :file:`configure`: Changes for DSO generation on AIX provided by |
| 49 |
`John Marquart <[email protected]>`_. |
| 50 |
|
| 51 |
* :file:`configure`, :file:`libtiff/Makefile.in`: Modified to build DSOs properly |
| 52 |
on Darwin thanks to `Robert Krajewski <[email protected]>`_ and |
| 53 |
`Keisuke Fujii <[email protected]>`_. |
| 54 |
|
| 55 |
* :file:`configure`, :file:`libtiff/Makefile.in`: applied OpenBSD patches as per bug :bugzilla-rs:`61`. |
| 56 |
|
| 57 |
* :file:`Makefile.in`: added ``DESTDIR`` support as per bug :bugzilla-rs:`60`. |
| 58 |
|
| 59 |
* :file:`libtiff/tif_jpeg.c`: Define :c:macro:`HAVE_BOOLEAN` on windows if :file:`RPCNDR.H` |
| 60 |
has been included. |
| 61 |
* :file:`man/Makefile.in`: add :c:func:`TIFFClientOpen` link as per debian submitted |
| 62 |
bug :bugzilla-rs:`66`. |
| 63 |
* :file:`libtiff/Makefile.in`: Fixed ``@DSOSUB_VERSION`` to be ``@DSOSUF_VERSION@`` |
| 64 |
in two places. |
| 65 |
|
| 66 |
|
| 67 |
Library changes |
| 68 |
--------------- |
| 69 |
|
| 70 |
* :file:`tif_fax3.c`: keep :c:var:`rw_mode` flag internal to fax3 state to remember |
| 71 |
whether we are encoding or decoding. This is to ensure graceful |
| 72 |
recovery if :c:func:`TIFFClientOpen` discovers an attempt to open a compressed |
| 73 |
file for "``r+``" access, and subsequently close it, as it resets the |
| 74 |
:c:member:`tif_mode` flag to ``O_RDONLY`` in this case to avoid writes, confusing the |
| 75 |
compressor's concept of whether it is in encode or decode mode. |
| 76 |
|
| 77 |
* :file:`tif_luv.c`, :file:`tiff.h`, :file:`tiffio.h`: |
| 78 |
New version of TIFF LogLuv (SGILOG) modules contributed by `Greg Ward |
| 79 |
<[email protected]>`_. He writes: |
| 80 |
|
| 81 |
* I improved the gamut-mapping function in :file:`tif_luv.c` for imaginary |
| 82 |
colors, because some images were being super-saturated on the input |
| 83 |
side and this resulted in some strange color shifts in the output. |
| 84 |
|
| 85 |
* I added a psuedotag in :file:`tiff.h` to control random dithering during |
| 86 |
LogLuv encoding. This is turned off by default for 32-bit LogLuv and |
| 87 |
on for 24-bit LogLuv output. Dithering improves the average color |
| 88 |
accuracy over the image. |
| 89 |
|
| 90 |
* I added a ``#define`` for :c:macro:`LOG_LUV_PUBLIC`, which is enabled by default in |
| 91 |
:file:`tiffio.h`, to expose internal routines for converting between LogLuv and |
| 92 |
XYZ coordinates. This is helpful for writing more efficient, |
| 93 |
specialized conversion routines, especially for reading LogLuv files. |
| 94 |
|
| 95 |
* :file:`libtiff/tif_dirinfo.c`: don't declare :c:var:`tiffFieldInfo` static on VMS. |
| 96 |
|
| 97 |
* Added :c:macro:`TIFFTAG_COPYRIGHT` support. |
| 98 |
|
| 99 |
* :file:`tif_getimage.c`: Added support for 16bit minisblack/miniswhite |
| 100 |
images in RGBA interface. |
| 101 |
|
| 102 |
* :file:`libtiff/tif_dirinfo.c`: removed duplicate :c:macro:`TIFFTAG_PHOTOSHOP` as per |
| 103 |
bug :bugzilla-rs:`44`. |
| 104 |
|
| 105 |
* :file:`libtiff/tif_dirwrite.c`: Added support for :c:enumerator:`TIFF_VARIABLE2` in the |
| 106 |
case of writing :c:enumerator:`TIFF_BYTE`/:c:enumerator:`TIFF_SBYTE` fields as per |
| 107 |
bug :bugzilla-rs:`43`. |
| 108 |
|
| 109 |
* :file:`libtiff/tif_dirinfo.c`: Modified the :c:enumerator:`TIFF_BYTE` definition for |
| 110 |
:c:macro:`TIFFTAG_PHOTOSHOP` to use a writecount of :c:enumerator:`TIFF_VARIABLE2` (-3) to |
| 111 |
force use of :c:type:`uint32` counts instead of :c:expr:`short` counts. |
| 112 |
|
| 113 |
* :file:`libtiff/tif_dirinfo.c`: moved pixar and copyright flags to ensure everything is in order. |
| 114 |
|
| 115 |
* Integrated experimental OJPEG support from Scott Marovich of HP. |
| 116 |
|
| 117 |
* :file:`libtiff/tif_open.c`: Seek back to zero after failed read, before writing header. |
| 118 |
|
| 119 |
* :file:`libtiff/tiff.h`, :file:`libtiff/tif_fax3.c`: added check for :c:macro:`__LP64__` |
| 120 |
when checking for 64 bit architectures as per bugzilla bug :bugzilla-rs:`67`. |
| 121 |
|
| 122 |
* :file:`libtiff/tif_getimage.c`: Use :c:func:`memmove` instead of :c:func:`TIFFmemcpy` |
| 123 |
in :c:func:`TIFFReadRGBATile` to avoid issues in cases of overlapping |
| 124 |
buffers. See bug :bugzilla-rs:`69` in Bugzilla. |
| 125 |
|
| 126 |
* :file:`libtiff/tif_getimage.c`: Don't complain for CMYK (separated) |
| 127 |
images with more than four samples per pixel as per bug :bugzilla-rs:`73`. |
| 128 |
|
| 129 |
* :file:`libtiff/tif_getimage.c`: relax handling of contig case where |
| 130 |
there are extra samples that are supposed to be ignored as per bug :bugzilla-rs:`75`. This |
| 131 |
should now work for 8bit greyscale or paletted images. |
| 132 |
|
| 133 |
* :file:`libtiff/tif_packbits.c`: fixed memory overrun error as per bug :bugzilla-rs:`77`. |
| 134 |
|
| 135 |
* :file:`libtiff/tif_getimage.c`: Fixed problem with reading strips or |
| 136 |
tiles that don't start on a tile boundary. Fix contributed by |
| 137 |
Josep Vallverdu (from HP), and further described in bug :bugzilla-rs:`47`. |
| 138 |
|
| 139 |
* :file:`libtif/tif_fax3.c`: Removed ``#ifdef PURIFY`` logic, and modified to |
| 140 |
always use the "safe" version, even if there is a very slight |
| 141 |
cost in performance as per bug :bugzilla-rs:`54`. |
| 142 |
|
| 143 |
* :file:`libtiff/tif_lzw.c`: added dummy :c:func:`LZWSetupEncode` to report an |
| 144 |
error about LZW not being available. |
| 145 |
|
| 146 |
* :file:`libtiff/tif_dir.c`: propagate failure to initialize compression |
| 147 |
back from :c:func:`TIFFSetField` as an error status, so applications can |
| 148 |
detect failure. |
| 149 |
|
| 150 |
* :file:`libtiff/tif_lzw.c`: Avoid MS VC++ 5.0 optimization bug as per bug :bugzilla-rs:`78`. |
| 151 |
|
| 152 |
* :file:`libtiff/tif_dirwrite.c`: added :c:func:`TIFFRewriteDirectory` function. |
| 153 |
Updated :c:func:`TIFFWriteDirectory` man page to include :c:func:`TIFFRewriteDirectory`. |
| 154 |
|
| 155 |
* :file:`libtiff/tiff.h`: I have created :c:macro:`COMPRESSION_CCITT_T4`, |
| 156 |
:c:macro:`COMPRESSION_CCITT_T6`, :c:macro:`TIFFTAG_T4OPTIONS` and :c:macro:`TIFFTAG_T6OPTIONS` aliases |
| 157 |
in keeping with TIFF 6.0 standard in :file:`tiff.h` as per bug :bugzilla-rs:`83`. |
| 158 |
|
| 159 |
* Added :c:macro:`PHOTOMETRIC_ITULAB` as per bug :bugzilla-rs:`90`. |
| 160 |
|
| 161 |
|
| 162 |
Tools changes |
| 163 |
------------- |
| 164 |
|
| 165 |
* Brent Roman contributed updated :program:`tiffcp` utility (and :file:`tiffcp.1`) |
| 166 |
with support for extracting subimages with the ``,n`` syntax, and also |
| 167 |
adding the "``-b``" bias removal flag. |
| 168 |
|
| 169 |
* :file:`tiff2ps.c`, :file:`tiff2ps.1`: Substantial changes to :program:`tiff2ps` by |
| 170 |
Bruce A. Mallett, including a faster encoder, fixes for level |
| 171 |
2 PostScript, and support for the imagemask operator. |
| 172 |
|
| 173 |
* fax2ps.c: Helge (libtiff at oldach.net) submitted fix |
| 174 |
that corrects behaviour for non-Letter paper |
| 175 |
sizes. (bug :bugzilla-rs:`35`) It fixes two problems: |
| 176 |
|
| 177 |
Without scaling ("``-S``") the fax is now centered on the page size specified |
| 178 |
with "``-H``" and/or "``-W``". Before, :program:`fax2ps` was using an obscure and practically |
| 179 |
useless algorithm to allocate the image relative to Letter sized paper |
| 180 |
which sometime sled to useless whitespace on the paper, while at the |
| 181 |
same time cutting of the faxes printable area at the opposite border. |
| 182 |
|
| 183 |
Second, scaling now preserves aspect ratio, which makes unusual faxes |
| 184 |
(in particular short ones) print properly. |
| 185 |
|
| 186 |
* :file:`thumbnail.c`: changed default output compression |
| 187 |
to packbits from LZW since LZW isn't generally available. |
| 188 |
|
| 189 |
* :file:`tiff2rgba.c`: added "``-n``" flag to avoid emitting alpha component. Also added |
| 190 |
a man page for :program:`tiff2rgba`. |
| 191 |
|
| 192 |
* :file:`tiffcmp.c`: Fixed multi samples per pixel support for :c:func:`ContigCompare` |
| 193 |
as per bug :bugzilla-rs:`53`. |
| 194 |
Updated bug section of tiffcmp.1 to note tiled file issues. |
| 195 |
|
| 196 |
* :file:`libtiff/tif_getimage.c`: Fixed so that failure is properly |
| 197 |
reported by :c:func:`gtTileContig`, :c:func:`gtStripContig`, :c:func:`gtTileSeparate` and |
| 198 |
:c:func:`gtStripSeparate` as per bug :bugzilla-rs:`51`. |
| 199 |
|
| 200 |
|
| 201 |
Contributed software changes |
| 202 |
---------------------------- |
| 203 |
|
| 204 |
* Fixed distribution to include :file:`contrib/addtiffo/tif_ovrcache.c` |
| 205 |
and :file:`contrib/addtiffo/tif_ovrcache.h`. |
| 206 |
|
| 207 |
|
| 208 |
LZW compression kit changes |
| 209 |
--------------------------- |
| 210 |
|
| 211 |
* Rewrote lzw patching process so that is required to enable full |
| 212 |
LZW support is to drop the :file:`tif_lzw.c` from the |
| 213 |
``libtiff-lzw-compression-kit`` over the one in the libtiff directory. |
| 214 |
|
| 215 |
* Some changes were made to make recovery from failure to |
| 216 |
initialize the LZW compressor more graceful. |
| 217 |
|
| 218 |
* Note that as distributed libtiff support LZW decompression, but |
| 219 |
not LZW compression. |