From 0ee8c63551b078eef63f178163c4d85ba25e0f0e Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 19 May 2018 15:03:47 +0100 Subject: [PATCH] Replace use of libvips API deprecated since v8.6.1 See jcupitt/libvips@b085908 --- src/metadata.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/metadata.cc b/src/metadata.cc index 9676cb12..996cf3f0 100644 --- a/src/metadata.cc +++ b/src/metadata.cc @@ -83,9 +83,9 @@ class MetadataWorker : public Nan::AsyncWorker { baton->iccLength = iccLength; } // IPTC - if (image.get_typeof(VIPS_META_IPCT_NAME) == VIPS_TYPE_BLOB) { + if (image.get_typeof(VIPS_META_IPTC_NAME) == VIPS_TYPE_BLOB) { size_t iptcLength; - void const *iptc = image.get_blob(VIPS_META_IPCT_NAME, &iptcLength); + void const *iptc = image.get_blob(VIPS_META_IPTC_NAME, &iptcLength); baton->iptc = static_cast(g_malloc(iptcLength)); memcpy(baton->iptc, iptc, iptcLength); baton->iptcLength = iptcLength;