diff options
author | David Ryskalczyk <david.rysk@gmail.com> | 2021-05-08 16:39:15 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2021-05-08 16:39:15 +0000 |
commit | f0f68dc5425f00f3eb500e085393c76c48f66d6a (patch) | |
tree | 53be89b171419adbf0d1ba15e4c5cfc5f321ad25 /tools/tiff2pdf.c | |
parent | 9525747f2070b765c1cb363977120b1b757219a2 (diff) | |
download | libtiff-git-f0f68dc5425f00f3eb500e085393c76c48f66d6a.tar.gz |
Fix all remaining uses of legacy Deflate compression id and warn on use
Diffstat (limited to 'tools/tiff2pdf.c')
-rw-r--r-- | tools/tiff2pdf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tiff2pdf.c b/tools/tiff2pdf.c index 63751f11..be051c5a 100644 --- a/tools/tiff2pdf.c +++ b/tools/tiff2pdf.c @@ -2789,7 +2789,7 @@ dataready: #endif /* ifdef JPEG_SUPPORT */ #ifdef ZIP_SUPPORT case T2P_COMPRESS_ZIP: - TIFFSetField(output, TIFFTAG_COMPRESSION, COMPRESSION_DEFLATE); + TIFFSetField(output, TIFFTAG_COMPRESSION, COMPRESSION_ADOBE_DEFLATE); if(t2p->pdf_defaultcompressionquality%100 != 0){ TIFFSetField(output, TIFFTAG_PREDICTOR, @@ -3286,7 +3286,7 @@ tsize_t t2p_readwrite_pdf_image_tile(T2P* t2p, TIFF* input, TIFF* output, ttile_ #endif #ifdef ZIP_SUPPORT case T2P_COMPRESS_ZIP: - TIFFSetField(output, TIFFTAG_COMPRESSION, COMPRESSION_DEFLATE); + TIFFSetField(output, TIFFTAG_COMPRESSION, COMPRESSION_ADOBE_DEFLATE); if(t2p->pdf_defaultcompressionquality%100 != 0){ TIFFSetField(output, TIFFTAG_PREDICTOR, |