how can I get information about image in ubuntu?

C++
$ exiv2 myimage.jpg
Source

Also in C++: