d5facc88d0
- Update to 4.5.0: * tdir_t type updated to uint32_t. This type is now used for the return value of TIFFCurrentDirectory() and TIFFNumberOfDirectories(), and as the argument of TIFFSetDirectory() and TIFFUnlinkDirectory() * Addition of an open option concept with the new functions TIFFOpenExt(), TIFFOpenWExt(), TIFFFdOpenExt(), TIFFClientOpenExt(), TIFFOpenOptionsAlloc(), TIFFOpenOptionsFree() * Leveraging above mentioned open option concept, addition of a new capability to limit the size of a single dynamic memory allocation done by the library with TIFFOpenOptionsSetMaxSingleMemAlloc() * Related to IFD-Loop detection refactoring, the number of IFDs that libtiff can browse through has been extended from 65535 to 1048576. This value is a build-time setting that can be configured with CMake's TIFF_MAX_DIR_COUNT variable or autoconf's --with-max-dir-count option. * Whole code base reformatting of .c/.h files using new .clang-format format * Documentation changed from static HTML and man pages to Restructured Text (rst). HTML and man pages are now build artifacts. * SONAME version bumped to 6 due to changes in symbol versioning. * autoconf/cmake: detect (not yet released) libjpeg-turbo 2.2 to take into its capability of handling both 8-bit JPEG and 12-bit JPEG in a single build. * autoconf/cmake: detect sphinx-build to build HTML and man pages * CMakeLists.txt: fix warning with -Wdev * CMake: correctly set default value of 'lzma' option when liblzma is detected * CMake: Moved linking of CMath::CMath into CMath_LIBRARY check. * Fix CMake build to be compatible with FetchContent. * cmake: Correct duplicate definition of _CRT_SECURE_NO_WARNINGS * cmake: Fixes for Visual Studio 2022. * Adds Requires.private generation so that pkg-config can correctly find the dependencies of libtiff. * Fix dependency on libm on Android OBS-URL: https://build.opensuse.org/request/show/1057208 OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=164
19 lines
683 B
Diff
19 lines
683 B
Diff
--- tiff-4.5.0/tools/tiff2pdf.c.orig 2023-01-04 09:52:13.665734351 +0100
|
|
+++ tiff-4.5.0/tools/tiff2pdf.c 2023-01-04 09:53:13.922053942 +0100
|
|
@@ -1435,6 +1435,15 @@
|
|
t2p->t2p_error = T2P_ERR_ERROR;
|
|
return;
|
|
}
|
|
+ if(t2p->tiff_compression != COMPRESSION_LZW &&
|
|
+ t2p->tiff_compression != COMPRESSION_NONE){
|
|
+ TIFFWarning(
|
|
+ TIFF2PDF_MODULE,
|
|
+ "%s is not compressed with LZW or NONE.\n"
|
|
+ "tiff2pdf result may be incorrect in that case.\n"
|
|
+ "Consider to use tiffcp(1) to change compress algorithm first.",
|
|
+ TIFFFileName(input) );
|
|
+ }
|
|
if (TIFFIsCODECConfigured(t2p->tiff_compression) == 0)
|
|
{
|
|
TIFFError(TIFF2PDF_MODULE,
|