dnginfo/main.cpp
2018-10-02 23:00:12 +03:00

20 lines
301 B
C++

#include <iostream>
#include "TIFF.h"
int main(int argc, char** argv) {
if (argc < 2) {
std::cout << "too few arguments" << std::endl;
return 1;
}
std::string fileName = argv[1];
TIFF tiff(fileName);
for(auto const& ifd: tiff.ifds()) {
ifd.dumpInfo();
}
system("pause");
return 0;
}