Expose IPTC and XMP metadata when available (#1079)

This commit is contained in:
Oleg Aleynik
2018-01-11 00:12:11 +02:00
committed by Lovell Fuller
parent 8afcb16d8e
commit c4df115948
7 changed files with 57 additions and 2 deletions

View File

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