ConvertTo-Jpeg icon indicating copy to clipboard operation
ConvertTo-Jpeg copied to clipboard

Output file name extension not replaced.

Open zapwong opened this issue 2 years ago • 1 comments

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"`

zapwong avatar Jan 11 '23 04:01 zapwong

The current naming of the output file is deliberate because it shows the file has been converted.

DavidAnson avatar Jan 11 '23 04:01 DavidAnson