| 1 |
Changes in TIFF v3.9.0beta |
| 2 |
========================== |
| 3 |
|
| 4 |
.. table:: References |
| 5 |
:widths: auto |
| 6 |
|
| 7 |
====================== ========================================== |
| 8 |
Current Version v3.9.0beta (:tag:`Release-v3-9-0beta`) |
| 9 |
Previous Version :doc:`v3.8.2 <v3.8.2>` |
| 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 |
Major changes |
| 21 |
------------- |
| 22 |
|
| 23 |
* New :program:`tiffcrop` utility contributed by Richard Nolde. |
| 24 |
:program:`tiffcrop` does the same as :program:`tiffcp`, but also can crop, |
| 25 |
extract, rotate and mirror images. |
| 26 |
|
| 27 |
* :file:`tif_jbig.c`: Added support for JBIG compression scheme |
| 28 |
(34661 code), contributed by Lee Howard. |
| 29 |
|
| 30 |
* Totally new implementation of OJPEG module from |
| 31 |
Joris Van Damme. No need to patch libjpeg anymore. Many OJPEG files |
| 32 |
should be supported now that was not supported previously. |
| 33 |
|
| 34 |
Software configuration changes |
| 35 |
------------------------------ |
| 36 |
|
| 37 |
* :file:`tif_config.wince.h`, :file:`tiffconf.wince.h`, :file:`tif_wince.c`: WinCE-specific |
| 38 |
compatibility stuff from Mateusz Loskot. |
| 39 |
|
| 40 |
* Rename :file:`config.h.vc` and :file:`tif_config.h.vc` to :file:`config.vc.h` and |
| 41 |
:file:`tif_config.vc.h` for easier identification by folks using an IDE. |
| 42 |
|
| 43 |
* :file:`configure`, :file:`configure.ac`: OJPEG support enabled by default (i.e., |
| 44 |
when conformant JPEG support is enabled). |
| 45 |
|
| 46 |
* :file:`README.vms`, :file:`Makefile.am`, :file:`configure.com`, :file:`libtiff/Makefile.am`, |
| 47 |
:file:`libtiff/tif_config.h-vms`, :file:`libtiff/tif_stream.cxx`, |
| 48 |
:file:`libtiff/tif_vms.c`, :file:`libtiff/tiffconf.h-vms`: |
| 49 |
Added support for OpenVMS by Alexey Chupahin. |
| 50 |
|
| 51 |
* :file:`nmake.opt`: use ``/EHsc`` for VS2005 compatibility. Also define |
| 52 |
:c:macro:`_CRT_SECURE_NO_DEPRECATE` to avoid noise on VS2005. |
| 53 |
|
| 54 |
|
| 55 |
Library changes |
| 56 |
--------------- |
| 57 |
|
| 58 |
* :file:`tif_dirinfo.c` (:c:func:`_TIFFFindFieldInfo`): Don't attempt to |
| 59 |
:c:func:`bsearch` on a :c:macro:`NULL` fieldinfo list. |
| 60 |
(:c:func:`_TIFFFindFieldInfoByName`): Don't attempt to :c:func:`lfind` on a :c:macro:`NULL` |
| 61 |
fieldinfo list. |
| 62 |
|
| 63 |
* :file:`tif_jpeg.c`: Changed :c:func:`JPEGInitializeLibJPEG` so that it |
| 64 |
will convert from decompressor to compressor or compress to decompress |
| 65 |
if required by the force arguments. This works around a problem in |
| 66 |
where the :c:func:`JPEGFixupTestSubsampling` may cause a decompressor to |
| 67 |
be setup on a directory when later a compressor is required with the |
| 68 |
force flag set. Occurs with the :program:`addtiffo` program for instance. |
| 69 |
|
| 70 |
* :file:`tif_dirwrite.c`: Fixed swapping of byte arrays stored |
| 71 |
in-place in tag offsets as per bug |
| 72 |
:bugzilla-rs:`1363` |
| 73 |
|
| 74 |
* :file:`tif_getimage.c`: workaround for "Fractional scanline" error |
| 75 |
reading OJPEG images with rowsperstrip that is not a multiple of |
| 76 |
vertical subsampling factor. This bug is mentioned in |
| 77 |
:bugzilla-rs:`1390` and |
| 78 |
`<http://www.asmail.be/msg0054766825.html>`_ |
| 79 |
|
| 80 |
* :file:`tif_dirread.c`: Added special function to handle |
| 81 |
``SubjectDistance`` EXIF tag as per bug |
| 82 |
:bugzilla-rs:`1362` |
| 83 |
|
| 84 |
* :file:`tif_dirread.c`, :file:`tif_read.c`: Type of the byte counters |
| 85 |
changed from :c:type:`tsize_t` to :c:type:`uint32` to be able to work with data arrays |
| 86 |
larger than 2GB. Fixes bug |
| 87 |
:bugzilla-rs:`890`. |
| 88 |
Idea submitted by Matt Hancher. |
| 89 |
|
| 90 |
* :file:`tif_dir.c`: Workaround for incorrect TIFFs with |
| 91 |
``ExtraSamples == 999`` produced by Corel Draw. As per bug |
| 92 |
:bugzilla-rs:`1490` |
| 93 |
|
| 94 |
* :file:`tif_write.c`: :c:func:`TIFFAppendToStrip` - clear sorted flag if |
| 95 |
we move a strip. |
| 96 |
:bugzilla-rs:`1359` |
| 97 |
|
| 98 |
* :file:`tif_fax3.c`: Save the state of printdir codec dependent method. |
| 99 |
|
| 100 |
* :file:`tif_jpeg.c`: Save the state of printdir codec dependent method |
| 101 |
as per bug |
| 102 |
:bugzilla-rs:`1273` |
| 103 |
|
| 104 |
* :file:`tif_win32.c`: Fixed problem with offset value manipulation |
| 105 |
as per bug |
| 106 |
:bugzilla-rs:`1322` |
| 107 |
|
| 108 |
* :file:`tif_fax3.c`, :file:`tif_next.c`, :file:`tif_pixarlog.c`: Fixed multiple |
| 109 |
vulnerabilities, as per Gentoo bug (): |
| 110 |
`<http://bugs.gentoo.org/show_bug.cgi?id=142383>`_ |
| 111 |
|
| 112 |
* :file:`tif_lzw.c`, :file:`tif_zip.c`: Fixed problems with mixing |
| 113 |
encoding and decoding on the same read-write TIFF handle. The LZW |
| 114 |
code can now maintain encode and decode state at the same time. The |
| 115 |
ZIP code will switch back and forth as needed. |
| 116 |
:bugzilla-rs:`757` |
| 117 |
|
| 118 |
* :file:`tif_msdos.c`: Avoid handle leak for failed opens. |
| 119 |
c/o Thierry Pierron |
| 120 |
|
| 121 |
* :file:`tif_dirwrite.c`: take care not to flush out buffer of strip/tile |
| 122 |
data in :c:func:`_TIFFWriteDirectory` if :c:macro:`TIFF_BEENWRITING` not set. Relates |
| 123 |
to bug report by Peng Gao with black strip at bottom of images. |
| 124 |
|
| 125 |
* :file:`tif_dirwrite.c`: make sure to use :c:type:`uint32` for wordcount in |
| 126 |
:c:func:`TIFFWriteNormalTag` if ``writecount`` is :c:macro:`VARIABLE2` for ASCII fields. |
| 127 |
It already seems to have been done for other field types. Needed |
| 128 |
for :program:`tiffset` on files with geotiff ascii text. |
| 129 |
|
| 130 |
* :file:`tif_dirinfo.c`: Added missed EXIF tag ``ColorSpace`` (40961). |
| 131 |
|
| 132 |
* :file:`tif_dirread.c`: Move IFD fetching code in the separate |
| 133 |
function :c:func:`TIFFFetchDirectory` avoiding code duplication in |
| 134 |
:c:func:`TIFFReadDirectory` and :c:func:`TIFFReadCustomDirectory`. |
| 135 |
|
| 136 |
* :file:`tif_readdir.c`: Added case in :c:func:`EstimateStripByteCounts` for tiled |
| 137 |
files. Modified :c:func:`TIFFReadDirectory` to not invoke |
| 138 |
:c:func:`EstimateStripByteCounts` for case where entry 0 and 1 are unequal but |
| 139 |
one of them is zero. |
| 140 |
:bugzilla-rs:`1204` |
| 141 |
|
| 142 |
* :file:`tif_open.c`, :file:`tif_dirread.c`, :file:`tiffiop.h`: Move IFD looping |
| 143 |
checking code in the separate function :c:func:`TIFFCheckDirOffset`. |
| 144 |
|
| 145 |
* :file:`tif_aux.c`: Added :c:func:`_TIFFCheckRealloc` function. |
| 146 |
|
| 147 |
* :file:`tif_fax3.c`: Fixed problems in fax decoder as per bug |
| 148 |
:bugzilla-rs:`1194` |
| 149 |
|
| 150 |
* :file:`tif_jbig.c`: Added support for JBIG compression scheme |
| 151 |
(34661 code) contributed by Lee Howard. As per bug |
| 152 |
:bugzilla-rs:`896`. |
| 153 |
|
| 154 |
* :file:`tif_getimage.c`: Added support for planarconfig separate |
| 155 |
non-subsampled YCbCr (i.e. separate YCbCr with subsampling ``[1,1]``). |
| 156 |
|
| 157 |
* :file:`tif_getimage.c`: Revision of all RGB(A) put routines: |
| 158 |
|
| 159 |
* Conversion of unassociated alpha to associated alpha |
| 160 |
now done with more performant LUT, and calculation more |
| 161 |
correct. |
| 162 |
* Conversion of 16bit data to 8bit data now done with |
| 163 |
more performant LUT, and calculation more correct |
| 164 |
* Bugfix of handling of 16bit RGB with unassociated alpha |
| 165 |
|
| 166 |
* :file:`tif_ojpeg.c`: totally new implementation |
| 167 |
|
| 168 |
* :file:`tif_getimage.c`: removed :c:macro:`TIFFTAG_JPEGCOLORMODE` handling |
| 169 |
of OJPEG images in favor of tif_getimage.c native handling of |
| 170 |
YCbCr and desubsampling. |
| 171 |
|
| 172 |
* :file:`tif_jpeg.c`: :c:func:`JPEGVSetField` so that altering the photometric |
| 173 |
interpretation causes the "upsampled" flag to be recomputed. Fixes |
| 174 |
peculiar bug where photometric flag had to be set before jpegcolormode |
| 175 |
flag. |
| 176 |
|
| 177 |
Tools changes |
| 178 |
------------- |
| 179 |
|
| 180 |
* :file:`tiff2ps.c`: Added support 16-bit images as per bug |
| 181 |
:bugzilla-rs:`1566`. |
| 182 |
Patch from William Bader. |
| 183 |
|
| 184 |
* :file:`tiff2pdf.c`: Fix for :c:macro:`TIFFTAG_JPEGTABLES` tag fetching and |
| 185 |
significant upgrade of the whole utility as per bug |
| 186 |
:bugzilla-rs:`1560`. |
| 187 |
Now we don't need :file:`tiffiop.h` in :program:`tiff2pdf` anymore and will open output |
| 188 |
PDF file using :c:func:`TIFFClientOpen` machinery as it is implemented |
| 189 |
by Leon Bottou. |
| 190 |
|
| 191 |
* :file:`tiffcrop.c`: New tiffcrop utility contributed |
| 192 |
by Richard Nolde. As per bug |
| 193 |
:bugzilla-rs:`1383` |
| 194 |
|
| 195 |
* :file:`tiff2pdf.c`: Do not assume inches when the resolution units |
| 196 |
do not specified. As per bug |
| 197 |
:bugzilla-rs:`1366` |
| 198 |
|
| 199 |
* :file:`tiffset.c`: Properly handle tags with :c:macro:`TIFF_VARIABLE` writecount. |
| 200 |
As per bug |
| 201 |
:bugzilla-rs:`1350` |
| 202 |
|
| 203 |
* :file:`tif2rgba.c`: This utility does not work properly on big-endian |
| 204 |
architectures. It was fixed including the bug |
| 205 |
:bugzilla-rs:`1149` |
| 206 |
|
| 207 |
* :file:`tiff2pdf.c`: Fix handling of ``-q`` values. |
| 208 |
:bugzilla-rs:`587` |
| 209 |
|
| 210 |
* :file:`tiffcmp.c`: Fixed floating point comparison logic as per bug |
| 211 |
:bugzilla-rs:`1191` |
| 212 |
|
| 213 |
* :file:`tiff2pdf.c`: Fixed buffer overflow condition in |
| 214 |
:c:func:`t2p_write_pdf_string` as per bug |
| 215 |
:bugzilla-rs:`1196` |
| 216 |
|
| 217 |
Contributed software changes |
| 218 |
---------------------------- |
| 219 |
|
| 220 |
* :file:`contrib/addtiffo/tif_overview.c`: Fix problems with odd sized |
| 221 |
output blocks in :c:func:`TIFF_DownSample_Subsampled` |
| 222 |
(:bugzilla-rs:`1542`). |
| 223 |
|
| 224 |
* :file:`contrib/dbs/xtiff/xtiff.c`: Make xtiff utility compilable. |
| 225 |
Though it is still far from the state of being working and useful. |