The script converts all PNG files in the specified folder tree to JPEG format running four workers in parallel
The attached powershell script searches all PNG files in the specified folder (including its subfolders) and converts them to JPEG, omitting PNG files with alpha channel used. If there is already a conversion from a previous run, the file is skipped. The filenames of the converted files get the extension for the target format appended.
For a conversion to JPEG format the following steps and their commands are used.
Determine if the PNG contains an alpha channel: