From 20a5448da1a881c691877a1466930c051782f363 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 1 Sep 2020 12:34:09 +0100 Subject: [PATCH] fix handling of "squash" param in tiffsave the deprecated param was not being detected correctly, breaking vips7 compat in some cases see https://github.com/libvips/libvips/issues/1801 --- ChangeLog | 1 + libvips/foreign/tiffsave.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 70926961..57a047ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ - convert no-profile CMYK to RGB on save [augustocdias] - ensure SVG loader skips input with chars outside x09-x7F range [lovell] - better mask sizing in gaussmat [johntrunc] +- fix tiffsave "squash" handling [barryspearce] 24/1/20 started 8.10.0 - more conformat IIIF output from dzsave [regisrob] diff --git a/libvips/foreign/tiffsave.c b/libvips/foreign/tiffsave.c index 33bc65ea..c0565c59 100644 --- a/libvips/foreign/tiffsave.c +++ b/libvips/foreign/tiffsave.c @@ -406,7 +406,7 @@ vips_foreign_save_tiff_file_build( VipsObject *object ) /* Handle the deprecated squash parameter. */ - if( vips_object_argument_isset( object, "squash" ) ) + if( tiff->squash ) /* We set that even in the case of LAB to LABQ. */ tiff->bitdepth = 1;