mirror of
https://github.com/lovell/sharp.git
synced 2025-07-12 03:50:13 +02:00
Replace use of libvips API deprecated since v8.6.1
See jcupitt/libvips@b085908
This commit is contained in:
parent
0ac5a9ad82
commit
0ee8c63551
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user