Using libexif in Python

拈花ヽ惹草 提交于 2019-12-25 18:42:37

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/17922591/using-libexif-in-python

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!