| 524 | } |
| 525 | |
| 526 | bool readImage(const char* path, Options& /* options */) { |
| 527 | using namespace Exiv2; |
| 528 | bool bResult = false; |
| 529 | |
| 530 | try { |
| 531 | Image::UniquePtr image = ImageFactory::open(path); |
| 532 | if (image.get()) { |
| 533 | image->readMetadata(); |
| 534 | ExifData& exifData = image->exifData(); |
| 535 | bResult = !exifData.empty(); |
| 536 | } |
| 537 | } catch (...) { |
| 538 | }; |
| 539 | return bResult; |
| 540 | } |
| 541 | |
| 542 | time_t readImageTime(const std::string& path, std::string* pS = nullptr) { |
| 543 | using namespace Exiv2; |
no test coverage detected