Moved "Copy metadata unchanged" to PP3, and added "strip metadata" mode

Fixes #3647
This commit is contained in:
Alberto Griggio
2017-12-29 23:03:44 +01:00
parent 7dea8a3ea8
commit b589254d21
19 changed files with 270 additions and 73 deletions

View File

@@ -1024,6 +1024,25 @@ struct ColorManagementParams {
bool operator !=(const ColorManagementParams& other) const;
};
/**
* Parameters for metadata handling
*/
struct MetaDataParams {
enum Mode {
TUNNEL,
EDIT,
STRIP
};
Mode mode;
MetaDataParams();
bool operator ==(const MetaDataParams &other) const;
bool operator !=(const MetaDataParams &other) const;
};
/**
* Typedef for representing a key/value for the exif metadata information
*/
@@ -1400,6 +1419,7 @@ public:
Glib::ustring appVersion; ///< Version of the application that generated the parameters
int ppVersion; ///< Version of the PP file from which the parameters have been read
MetaDataParams metadata; ///< Metadata parameters
ExifPairs exif; ///< List of modifications appplied on the exif tags of the input image
IPTCPairs iptc; ///< The IPTC tags and values to be saved to the output image