Qt World Summit: Submit your Presentation

How to access metadata of an image file

  • How do I access the metadata stored with image files?

    Specifically, my digital camera records the key camera settings (f-stop, exposure time, focal length, color representation, etc) with each image file. How do I access that info? With Windows file explorer, I just ask to see the "Properties" of a file. I'd like to do that pro grammatically

    This is a specific example of the more general issue - many files include such metadata, but I haven't figure out how to get to it.

    All help appreciated.

  • Lifetime Qt Champion

    Qt does not provide such a functionality out of the box. You need to use an external library like exiv2 for this task.

  • Thanks - I feared that might be the case. Have you used exiv2?Do you how robust their build process for Windows is?

    I bumped into immediate problems with th configure script and didn’t know where to turn for support. My security software basically refused access to the exiv2 online forum, warning of serious security issues.

Log in to reply