Read image XMP data in Python

后端 未结 6 1827
栀梦
栀梦 2020-12-09 04:20

Can I use PIL, like in this example?

I only need to read the data, and I\'m looking for the easiest simplest way to do it (I can\'t install

6条回答
  •  甜味超标
    2020-12-09 04:29

    Well, I was looking for something similar, then I came across the PHP equivalent question and I translated the anwer to Python:

    f = 'example.jpg'
    fd = open(f)
    d= fd.read()
    xmp_start = d.find('

    you can then convert xmp_str and parse it with an XML API.

提交回复
热议问题