If you have damaged files the tpai.exe CLI will not abort and return an error, but will continue trying to process that file. The GUI detects that correctly and shows unsupported file as an error. The CLI does not and runs the process with very high cpu without stopping.
C:\>"C:\Program Files\Topaz Labs LLC\Topaz Photo AI\tpai.exe" c:\Projects\1.png QML debugging is enabled. Only use this in a safe environment. Application settings: Overwrite Files: 0 Recurse Directories: 0 Input File Count: 1 Output Folder: Source folder Output Format: Preserve Jpeg quality: 95 Png compression level: 2 Tiff compression: none Tiff bit depth: 16 ExifTool loaded! Warning: failed to load Config_git.pl, something strange about this perl...
Steps to reproduce issue:
- Create a damaged file, e.g. a 1.png with 0 bytes or a 1.png with the contents of a text file with “sdfgdfg” inside.
- Run the CLI via tpai.exe c:\1.png -o c:\someOutputFolder
- The process will now run, it will not directly stop and CPU usage will be very high
I would suspect, that if I input an entire folder in 2), not just a file, that would block the processing of the entire folder/batch job once it reaches this damaged file.
I suspect that in the CLI the file validity check method, that is called in the GUI, is not called here and the models are used on the invalidly loaded data.
P.S. By the way, is that Warning: failed to load Config_git.pl something I need to worry about? I get that on every file (valid or not) and in all the versions of Photo AI I tested so far.
Topaz Photo AI [v1.3.1] on [Windows]