mirror of
https://github.com/lovell/sharp.git
synced 2026-02-07 07:06:16 +01:00
Expose IPTC and XMP metadata when available (#1079)
This commit is contained in:
committed by
Lovell Fuller
parent
8afcb16d8e
commit
c4df115948
@@ -38,6 +38,10 @@ struct MetadataBaton {
|
||||
size_t exifLength;
|
||||
char *icc;
|
||||
size_t iccLength;
|
||||
char *iptc;
|
||||
size_t iptcLength;
|
||||
char *xmp;
|
||||
size_t xmpLength;
|
||||
std::string err;
|
||||
|
||||
MetadataBaton():
|
||||
@@ -52,7 +56,11 @@ struct MetadataBaton {
|
||||
exif(nullptr),
|
||||
exifLength(0),
|
||||
icc(nullptr),
|
||||
iccLength(0) {}
|
||||
iccLength(0),
|
||||
iptc(nullptr),
|
||||
iptcLength(0),
|
||||
xmp(nullptr),
|
||||
xmpLength(0) {}
|
||||
};
|
||||
|
||||
NAN_METHOD(metadata);
|
||||
|
||||
Reference in New Issue
Block a user