PyExifTool (active PyPI project) - A Python library to communicate with an instance of Phil Harvey's ExifTool command-line application. Runs one process with special -stay_open flag, and pipes data to/from. Much more efficient than running a subprocess for each command!
When '-w' flag is added, exiftool writes the json in a file instead of putting it in stdout. This change handle that case to print the string "# image files read\n# output files created\n" that exiftool put to stdout, and return None, which is expected if the result is written to files.
When '-w' flag is added, exiftool writes the json in a file instead of putting it in stdout. This change handle that case to print the string "# image files read\n# output files created\n" that exiftool put to stdout, and return None, which is expected if the result is written to files.