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
This commit is contained in:
John Cupitt 2020-09-01 12:34:09 +01:00
parent 285ab2e6cc
commit 20a5448da1
2 changed files with 2 additions and 1 deletions

View File

@ -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]

View File

@ -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;