Search code examples
pythoncctypesexif

Using libexif in Python


I'm writing a Python-based [web] application that needs to be able to read and write EXIF data.

libexif seems to have all the right ingredients, but I can't work out how (or if) I could access it access it by using Python's ctypes library? I'm new to C, suppose I need see a .so for this to work?


Solution

  • You need to be running on an os that you can obtain the required library, to download the .h files, (usually the -dev package gives you these).

    Then you need to work your way through the ctypes tutorial found here which explains all the steps you need to take.