File tiff-4.0.3-compress-warning.patch of Package tiff
--- 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,