1
/* ============================================================
3
* This file is a part of kipi-plugins project
4
* http://www.kipi-plugins.org
7
* Description : a command line tool to tag from photo
9
* Copyright (C) 2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* ============================================================ */
36
using namespace KExiv2Iface;
38
int main (int argc, char **argv)
42
kDebug(51003) << "erasetag - erase tag from from image" << endl;
43
kDebug(51003) << "Usage: <image>" << endl;
47
QString filePath(argv[1]);
51
meta.setWriteRawFiles(true);
52
bool b = meta.removeExifTag("Exif.OlympusIp.BlackLevel", false);
53
kDebug() << "Exif.OlympusIp.BlackLevel found = " << b;
55
QByteArray ba = meta.getExifTagData("Exif.OlympusIp.BlackLevel");
56
kDebug() << "Exif.OlympusIp.BlackLevel removed = " << ba.isEmpty();