Replace use of libvips API deprecated since v8.6.1

See jcupitt/libvips@b085908
This commit is contained in:
Lovell Fuller 2018-05-19 15:03:47 +01:00
parent 0ac5a9ad82
commit 0ee8c63551

View File

@ -83,9 +83,9 @@ class MetadataWorker : public Nan::AsyncWorker {
baton->iccLength = iccLength; baton->iccLength = iccLength;
} }
// IPTC // 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; 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<char *>(g_malloc(iptcLength)); baton->iptc = static_cast<char *>(g_malloc(iptcLength));
memcpy(baton->iptc, iptc, iptcLength); memcpy(baton->iptc, iptc, iptcLength);
baton->iptcLength = iptcLength; baton->iptcLength = iptcLength;