expose the underlying library version in the image metadata

This commit is contained in:
Mirco Miranda
2026-10-16 16:20:42 +02:00
parent dc714be934
commit ae6031c02e
12 changed files with 69 additions and 2 deletions
+7 -1
View File
@@ -198,7 +198,7 @@ int main(int argc, char **argv)
QCoreApplication::removeLibraryPath(QStringLiteral(PLUGIN_DIR));
QCoreApplication::addLibraryPath(QStringLiteral(PLUGIN_DIR));
QCoreApplication::setApplicationName(QStringLiteral("readtest"));
QCoreApplication::setApplicationVersion(QStringLiteral("1.3.0"));
QCoreApplication::setApplicationVersion(QStringLiteral("1.3.1"));
QCommandLineParser parser;
parser.setApplicationDescription(QStringLiteral("Performs basic image conversion checking."));
@@ -352,6 +352,12 @@ int main(int argc, char **argv)
continue;
}
// version of the underlying library used, if any
QString libVer = inputImage.text(QStringLiteral("Library"));
if (!libVer.isEmpty()) {
QTextStream(stdout) << "INFO : using " << libVer << "\n";
}
if (!optionTest.compare(&inputReader)) {
QTextStream(stdout) << "FAIL : " << fi.fileName() << ": error while comparing options\n";
++failed;