ConvertTo-Jpeg
ConvertTo-Jpeg copied to clipboard
Output file name extension not replaced.
The script works fine. Output file name now look like filename.heic.jpg.
On changing line 91-92 to the followings will solve the issue.
$extension = $inputFile.FileType
$outputFileName = $inputFile.Name -replace ($extension + "$"), `".jpg"`
The current naming of the output file is deliberate because it shows the file has been converted.