metadata: workaround for misbehaviour of exiv2 on ubuntu 20.04

(cherry picked from commit 26b8860d4bb803cff0277c7b2353b58b5e02fbc6)
This commit is contained in:
Alberto Griggio
2020-05-07 09:26:13 +02:00
committed by Lawrence Lee
parent 41834c7007
commit 6224921843

View File

@@ -68,7 +68,7 @@ std::unique_ptr<Exiv2::Image> open_exiv2(const Glib::ustring& fname)
auto image = Exiv2::ImageFactory::open(Glib::filename_from_utf8(fname));
#endif
image->readMetadata();
if (!image->good()) {
if (!image->good() || image->exifData().empty()) {
#if EXIV2_TEST_VERSION(0,27,0)
auto error_code = Exiv2::kerErrorMessage;
#else