metadata: allow to select which metadata tags to include in the output image
(cherry picked from commit ed64206cb8b4455870815e2c51aecbd5c09e4054)
This commit is contained in:
committed by
Lawrence Lee
parent
5fdff8dab4
commit
abb052e51b
@@ -1739,6 +1739,9 @@ private:
|
||||
case MetaDataParams::EDIT:
|
||||
info.setExif(params.exif);
|
||||
info.setIptc(params.iptc);
|
||||
if (!(params.metadata.exifKeys.size() == 1 && params.metadata.exifKeys[0] == "ALL")) {
|
||||
info.setExifKeys(&(params.metadata.exifKeys));
|
||||
}
|
||||
readyImg->setMetadata(std::move(info));
|
||||
break;
|
||||
default: // case MetaDataParams::STRIP
|
||||
|
Reference in New Issue
Block a user