metadata: allow to select which metadata tags to include in the output image

(cherry picked from commit ed64206cb8b4455870815e2c51aecbd5c09e4054)
This commit is contained in:
Alberto Griggio
2020-04-08 11:48:36 -07:00
committed by Lawrence Lee
parent 5fdff8dab4
commit abb052e51b
12 changed files with 347 additions and 67 deletions

View File

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