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
This commit is contained in:
John Cupitt 2019-11-10 10:26:13 +00:00
parent f499cefb0e
commit b65a9d7328
2 changed files with 2 additions and 1 deletions

View File

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

View File

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