Open ninas opened 3 months ago
I've attached the image I was using in case that's helpful:
I'm not sure if this is already possible, but I wasn't able to figure it out from the docs/playing with params myself.
Is there a way to use the library so that results are returned without the groupname prefix? i.e.
ExposureTime
instead ofEXIF:ExposureTime
@ninas the answer is yes, it's already provided. As per the docs https://sylikc.github.io/pyexiftool/reference/1-exiftool.html#exiftool.ExifTool.__init__ , you can initialize with the parameter common_args
. The default is ['-G', '-n']
, so you can just instantiate a pyexiftool object with common_args=['-n']
and that's it!
Ah, missed that, thanks for responding!
Hi there! First off, thanks for this library, it has made my life infinitely easier!
I'm not sure if this is already possible, but I wasn't able to figure it out from the docs/playing with params myself.
Is there a way to use the library so that results are returned without the groupname prefix? i.e.
ExposureTime
instead ofEXIF:ExposureTime
When using exiftool directly, if the group name is not specified, it returns a value using the default group for that tag (at least that's what I understand from here).
I get the same result running exiftool directly:
Or using the python library:
However, running:
returns what I'm looking for (i.e. only the default value for the specified tag). Is there a way to get the same behaviour in pyexiftool?