v4.2.0.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>
  5. Changes in TIFF v4.2.0
  6. </TITLE>
  7. <STYLE TYPE="text/css">
  8. body {
  9. font-family: Helvetica, Arial, Sans;
  10. }
  11. table, th, td {
  12. border: 1px solid black;
  13. border-collapse: collapse;
  14. }
  15. th, td {
  16. padding: 8pt;
  17. text-align: center;
  18. }
  19. th {
  20. text-align: center;
  21. }
  22. td {
  23. text-align: center;
  24. }
  25. ul li {
  26. padding: 3pt;
  27. }
  28. ul.a {
  29. list-style-type: circle;
  30. }
  31. ul.b {
  32. list-style-type: square;
  33. }
  34. ol.c {
  35. list-style-type: upper-roman;
  36. }
  37. ol.d {
  38. list-style-type: lower-alpha;
  39. }
  40. hr {
  41. width: 65%;
  42. }
  43. </STYLE>
  44. </HEAD>
  45. <BODY BGCOLOR=white>
  46. <BASEFONT SIZE=4>
  47. <B><FONT SIZE="+3">T</FONT>IFF <FONT SIZE="+2">C</FONT>HANGE <FONT SIZE="+2">I</FONT>NFORMATION</B>
  48. <BASEFONT SIZE=3>
  49. <div style="margin-left: 3em">
  50. <HR SIZE=4 ALIGN=left>
  51. <B>Current Version</B>: v4.2.0<BR>
  52. <B>Previous Version</B>: <A HREF="v4.1.0.html">v4.1.0</A><BR>
  53. <B>Master Download Site</B>: <A HREF="https://download.osgeo.org/libtiff">
  54. download.osgeo.org</a>, directory pub/libtiff<BR>
  55. <B>Master HTTP Site #1</B>: <A HREF="http://www.simplesystems.org/libtiff/">
  56. http://www.simplesystems.org/libtiff/</A><BR>
  57. <B>Master HTTP Site #2</B>: <A HREF="https://libtiff.gitlab.io/libtiff/">
  58. https://libtiff.gitlab.io/libtiff/</A><BR>
  59. <B>Master HTTP Site #3</B>: <A HREF="http://libtiff.maptools.org/">
  60. http://libtiff.maptools.org/</a>
  61. <HR SIZE=4 ALIGN=left>
  62. </div>
  63. <P>
  64. This document provides a summary of significant changes made to the
  65. software between the <I>previous</I> and <I>current</I> versions (see
  66. above). A fully-detailed change summary is provided by the ChangeLog file
  67. included in the release package and by the Git commit history:
  68. <UL>
  69. <LI><A HREF="#highlights">Major Changes</A>
  70. <LI><A HREF="#configure">Changes in the software configuration</A>
  71. <LI><A HREF="#libtiff">Changes in libtiff</A>
  72. <LI><A HREF="#tools">Changes in the tools</A>
  73. <LI><A HREF="#contrib">Changes in the contrib area</A>
  74. </UL>
  75. <p>
  76. <P><HR ALIGN=left>
  77. <!-- ============================================================= -->
  78. <A NAME="highlights"><B><FONT SIZE="+3">M</FONT>AJOR CHANGES:</B></A>
  79. <UL>
  80. <LI>Optional support for using libdeflate is added.</LI>
  81. <LI>Many of the tools now support a memory usage limit.</LI>
  82. </UL>
  83. <P><HR ALIGN=left>
  84. <!-- ============================================================= -->
  85. <A NAME="configure"><B><FONT SIZE="+3">C</FONT>HANGES IN THE SOFTWARE CONFIGURATION:</B></A>
  86. <UL>
  87. <LI>The Microsoft Windows 'nmake' build is resuscitated and provides
  88. a default HAVE_STRTOLL setting in 'nmake.opt' which is suitable for
  89. MSVC++ 14.0 ("Visual Studio 2015") and later but may be disabled in
  90. order to compile with earlier compiler versions.</LI>
  91. <LI>mingw-w64 cmake build fixes to not add libm</LI>
  92. </UL>
  93. <P><HR ALIGN=left>
  94. <!-- ============================================================= -->
  95. <A NAME="libtiff"><B><FONT SIZE="+3">C</FONT>HANGES IN LIBTIFF:</B></A>
  96. <UL>
  97. <LI>A great many issues discovered by fuzzers (via oss-fuzz and other reports) have been addressed.</LI>
  98. <LI>EXIF 2.32 and GPS tags and functionality have been upgraded:
  99. <UL>
  100. <LI>Existing EXIF field definition of tags are upgraded to EXIF version 2.3.2</LI>
  101. <LI>EXIF-GPS structure, tags and access functions are added as special CustomDirectory (like it was done for EXIF).</LI>
  102. <LI>Reading error for FileSource and SceneType tags corrected.</LI>
  103. </UL>
  104. <LI>Make TIFFTAG_CFAPATTERN variable count.</LI>
  105. <LI>Cmake configuration fixes for big-endian targets.</LI>
  106. <LI><P>Added support for optional building against libdeflate for
  107. faster Zip/Deflate compression/decompression.</P>
  108. <P>We now have 2 kinds of builds with the Zip/Deflate codec:</P>
  109. <UL>
  110. <LI>zlib only</LI>
  111. <LI>zlib + libdeflate</LI>
  112. </UL>
  113. <P>Speed improvements in the 35%-50% range can be expected when libdeflate is used.
  114. Compression level up to 12 is now supported (capped to 9 when zlib is used).
  115. Still requires zlib for situations where libdeflate cannot be used (that
  116. is for scanline access, since libdeflate has no streaming mode)</P>
  117. <P>Pseudo-tag TIFFTAG_DEFLATE_SUBCODEC=DEFLATE_SUBCODEC_ZLIB/DEFLATE_SUBCODEC_LIBDEFLATE
  118. is added to control which subcodec (zlib or libdeflate) should be used (it defaults
  119. of course to libdeflate, when it is available).
  120. This is mostly aimed at being used on the writing side, to be able to reproduce
  121. output of previous libtiff versions at a binary level, in situations where this would
  122. be really needed. Or as a safety belt in case there would be unforeseen issues
  123. with using libdeflate.
  124. It can be used to know when libdeflate is available at runtime (DEFLATE_SUBCODEC_LIBDEFLATE
  125. will be the default value in that situation).</P>
  126. <P>Of course, deflate codestreams produced by libdeflate can be read by zlib, and vice-versa.</P>
  127. </LI>
  128. </UL>
  129. <P><HR ALIGN=left>
  130. <!-- ============================================================= -->
  131. <A NAME="tools"><B><FONT SIZE="+3">C</FONT>HANGES IN THE TOOLS:</B></A>
  132. <UL>
  133. <LI>A great many issues discovered by fuzzers (via oss-fuzz and other reports) have been addressed.</LI>
  134. <LI>ppm2tiff: support any bps value from 1 to 16.</LI>
  135. <LI>tiff2ps, tiff2rgba: A default memory limit is now enforced (256MiB) and a '-M' option is added to allow the user to adjust the limit.</LI>
  136. <LI>tiff2pdf, tiffcp: A default memory limit is now enforced (256MiB) and a '-m' option is added to allow the user to adjust the limit.</LI>
  137. <LI>tiffcrop: A default memory limit is now enforced (256MiB) and a '-k' option is added to allow the user to adjust the limit.</LI>
  138. <LI>tiff2pdf: fix "raw" copy of Deflate streams.</LI>
  139. <LI>tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr</LI>
  140. <LI>tiffcp: disable strip chopping when trying to convert to JBIG compression</LI>
  141. </UL>
  142. <P><HR ALIGN=left>
  143. <!-- ============================================================= -->
  144. <A NAME="contrib"><B><FONT SIZE="+3">C</FONT>HANGES IN THE CONTRIB AREA:</B></A>
  145. <UL>
  146. <LI>None</LI>
  147. </UL>
  148. </BODY>
  149. </HTML>