From b65a9d7328c77eb1481f53d08c8f5a4dd290cc40 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 10 Nov 2019 10:26:13 +0000 Subject: [PATCH] oop, missing ! on tiff save resolution-unit metadata was not being checked correctly on tiff save, thanks @kayarre see https://github.com/libvips/pyvips/issues/133 --- ChangeLog | 1 + libvips/foreign/tiffsave.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7061949a..58982a19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,7 @@ - add vips_error_buffer_copy() - add @no_strip option to dzsave [kalozka1] - add iiif layout to dzsave +- fix use of resolution-unit metadata on tiff save [kayarre] 31/8/19 started 8.8.3 - revert sharpen restoring the input colourspace diff --git a/libvips/foreign/tiffsave.c b/libvips/foreign/tiffsave.c index cf6ec9bc..5eeb35a2 100644 --- a/libvips/foreign/tiffsave.c +++ b/libvips/foreign/tiffsave.c @@ -159,7 +159,7 @@ vips_foreign_save_tiff_build( VipsObject *object ) /* resunit param overrides resunit metadata. */ - if( vips_object_argument_isset( object, "resunit" ) && + if( !vips_object_argument_isset( object, "resunit" ) && vips_image_get_typeof( save->ready, VIPS_META_RESOLUTION_UNIT ) && !vips_image_get_string( save->ready,