MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / readImage

Function readImage

samples/geotag.cpp:526–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526bool 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
542time_t readImageTime(const std::string& path, std::string* pS = nullptr) {
543 using namespace Exiv2;

Callers 1

getFileTypeFunction · 0.85

Calls 3

getMethod · 0.80
readMetadataMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected