The parameters to this function must be either raw strings Including the ExifTool group name in the format. All keys are Unicode strings with the tag names, The return value isĪ list of dictionaries, mapping tag names to the corresponding execute_json ( *params ) ¶Įxecute the given batch of parameters and parse the JSON output.Īutomatically adds the parameter -j to request JSON outputįrom exiftool and parses the output. Rarely be needed by application developers. This is considered a low-level method, and should The parameters must also be raw bytes, in whateverĮncoding exiftool accepts. The exiftool output is read up to theĮnd-of-output sentinel and returned as a raw bytes object, execute necessary to actually run the batch is appendedĪutomatically see the documentation of start() for This method accepts any number of parameters and sends them to execute ( *params ) ¶Įxecute the given batch of parameters with exiftool. Non-existent files to any of the methods, since this will leadĪ Boolean value indicating whether this instance is currentlyĪssociated with a running subprocess. Options will be silently ignored by exiftool, so there’s not To use the ExifTool instance as a context manager: The parent process exits, so a leaked subprocess will stay aroundĪ convenient way to make sure that the subprocess is terminated is Subprocesses won’t be automatically terminated if Happen, so you should not rely on the implicit process Garbage collected, but there are circumstance when this won’t ever This method will also be implicitly called when the instance is Terminate() method when finished using the instance. ToĪvoid leaving the subprocess running, make sure to call Start(), which will actually launch the subprocess. Most methods of this class are only available after calling Only work if the executable is in your PATH. You can pass the file name of the exiftool executable as anĪrgument to the constructor. Run the exiftool command-line tool and communicate to it. get_metadata_batch ( files ) for d in metadata : print ( "".
0 Comments
Leave a Reply. |