| 1 |
Changes in TIFF v4.2.0 |
| 2 |
====================== |
| 3 |
|
| 4 |
.. table:: References |
| 5 |
:widths: auto |
| 6 |
|
| 7 |
====================== ========================================== |
| 8 |
Current Version v4.2.0 (:tag:`v4.2.0`) |
| 9 |
Previous Version :doc:`v4.1.0 <v4.1.0>` |
| 10 |
Master Download Site `<https://download.osgeo.org/libtiff/>`_ |
| 11 |
Master HTTP Site #1 `<http://www.simplesystems.org/libtiff/>`_ |
| 12 |
Master HTTP Site #2 `<https://libtiff.gitlab.io/libtiff/>`_ |
| 13 |
Master HTTP Site #3 `<http://libtiff.maptools.org/>`_ |
| 14 |
====================== ========================================== |
| 15 |
|
| 16 |
This document provides a summary of significant changes made to the |
| 17 |
software between the *previous* and *current* versions (see |
| 18 |
above). A fully-detailed change summary is provided by the :file:`ChangeLog` file |
| 19 |
included in the release package and by the Git commit history: |
| 20 |
|
| 21 |
|
| 22 |
Major changes |
| 23 |
------------- |
| 24 |
|
| 25 |
* Optional support for using libdeflate is added. |
| 26 |
* Many of the tools now support a memory usage limit. |
| 27 |
|
| 28 |
|
| 29 |
Software configuration changes |
| 30 |
------------------------------ |
| 31 |
|
| 32 |
* The Microsoft Windows 'nmake' build is resuscitated and provides |
| 33 |
a default ``HAVE_STRTOLL`` setting in 'nmake.opt' which is suitable for |
| 34 |
MSVC++ 14.0 ("Visual Studio 2015") and later but may be disabled in |
| 35 |
order to compile with earlier compiler versions. |
| 36 |
|
| 37 |
* mingw-w64 cmake build fixes to not add libm |
| 38 |
|
| 39 |
|
| 40 |
Library changes |
| 41 |
--------------- |
| 42 |
|
| 43 |
* A great many issues discovered by fuzzers (via oss-fuzz and other reports) have been addressed. |
| 44 |
* EXIF 2.32 and GPS tags and functionality have been upgraded: |
| 45 |
|
| 46 |
* Existing EXIF field definition of tags are upgraded to EXIF version 2.3.2 |
| 47 |
* EXIF-GPS structure, tags and access functions are added as special ``CustomDirectory`` (like it was done for EXIF). |
| 48 |
* Reading error for FileSource and SceneType tags corrected. |
| 49 |
|
| 50 |
* Make ``TIFFTAG_CFAPATTERN`` variable count. |
| 51 |
|
| 52 |
* Cmake configuration fixes for big-endian targets. |
| 53 |
|
| 54 |
* Added support for optional building against libdeflate for |
| 55 |
faster Zip/Deflate compression/decompression. |
| 56 |
|
| 57 |
We now have 2 kinds of builds with the Zip/Deflate codec: |
| 58 |
|
| 59 |
* zlib only |
| 60 |
* zlib + libdeflate |
| 61 |
|
| 62 |
Speed improvements in the 35%-50% range can be expected when libdeflate is used. |
| 63 |
Compression level up to 12 is now supported (capped to 9 when zlib is used). |
| 64 |
Still requires zlib for situations where libdeflate cannot be used (that |
| 65 |
is for scanline access, since libdeflate has no streaming mode) |
| 66 |
|
| 67 |
Pseudo-tag ``TIFFTAG_DEFLATE_SUBCODEC=DEFLATE_SUBCODEC_ZLIB/DEFLATE_SUBCODEC_LIBDEFLATE`` |
| 68 |
is added to control which subcodec (zlib or libdeflate) should be used (it defaults |
| 69 |
of course to libdeflate, when it is available). |
| 70 |
This is mostly aimed at being used on the writing side, to be able to reproduce |
| 71 |
output of previous libtiff versions at a binary level, in situations where this would |
| 72 |
be really needed. Or as a safety belt in case there would be unforeseen issues |
| 73 |
with using libdeflate. |
| 74 |
It can be used to know when libdeflate is available at runtime (``DEFLATE_SUBCODEC_LIBDEFLATE`` |
| 75 |
will be the default value in that situation). |
| 76 |
|
| 77 |
Of course, deflate codestreams produced by libdeflate can be read by zlib, and vice-versa. |
| 78 |
|
| 79 |
|
| 80 |
Tools changes |
| 81 |
------------- |
| 82 |
|
| 83 |
* A great many issues discovered by fuzzers (via oss-fuzz and other reports) have been addressed. |
| 84 |
|
| 85 |
* :program:`ppm2tiff`: support any bps value from 1 to 16. |
| 86 |
|
| 87 |
* :program:`tiff2ps`, :program:`tiff2rgba`: A default memory limit is now enforced (256MiB) and a ``-M`` option is added to allow the user to adjust the limit. |
| 88 |
|
| 89 |
* :program:`tiff2pdf`, :program:`tiffcp`: A default memory limit is now enforced (256MiB) and a ``-m`` option is added to allow the user to adjust the limit. |
| 90 |
|
| 91 |
* :program:`tiffcrop`: A default memory limit is now enforced (256MiB) and a ``-k`` option is added to allow the user to adjust the limit. |
| 92 |
|
| 93 |
* :program:`tiff2pdf`: fix "raw" copy of Deflate streams. |
| 94 |
|
| 95 |
* :program:`tiff2pdf.c`: properly calculate datasize when saving to JPEG YCbCr |
| 96 |
|
| 97 |
* :program:`tiffcp`: disable strip chopping when trying to convert to JBIG compression |
| 98 |
|
| 99 |
|
| 100 |
Contributed software changes |
| 101 |
---------------------------- |
| 102 |
|
| 103 |
None |