Closed fdarvas closed 2 years ago
Uhm, I just tested and I'm pretty sure it's there (or else tests would fail). Are you using the latest v0.5.3 version? I ran this on the tests/images directory and it works just fine.
import exiftool
files = ["rose.jpg"]
with exiftool.ExifToolHelper() as et:
print(et.get_metadata(files))
The get_metadata()
function exists right here https://github.com/sylikc/pyexiftool/blob/master/exiftool/helper.py#L261
I see - it used to be:
with exiftool.ExifTool() as exift:
exif = exift.get_metadata(files)
, so that caused the confusion
Yes, so if you're a past user of the v0.4.x and previous PyExifTool. I broke the classes down.
This is mainly for maintainability, but it also allows adding extra features without breaking core ones
This will guide you to converting your code over. There are some other pretty big changes https://github.com/sylikc/pyexiftool/blob/master/COMPATIBILITY.txt#L15-L53
The get_metadata(file) method seems to have gone missing from the current exiftool object?
The outlined example usage does no longer work.