initial commit

This commit is contained in:
2019-02-25 15:41:58 +01:00
parent 7be5184335
commit 6f71082075
+13 -1
View File
@@ -27,7 +27,19 @@ bool cEXIF::fromFile(const QString& szFileName)
m_szFileName = "";
Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open(szFileName.toLocal8Bit().toStdString());
Exiv2::Image::UniquePtr image;
try
{
image = Exiv2::ImageFactory::open(szFileName.toLocal8Bit().toStdString());
}
catch (Exiv2::AnyError& e)
{
qDebug() << e.what();
// std::cout << "Caught Exiv2 exception '" << e << "'\n";
return(false);
}
if(!image.get())
return(false);