DavidAnson / ConvertTo-Jpeg

A PowerShell script that converts RAW (and other) image files to the widely-supported JPEG format
MIT License
188 stars 45 forks source link

Output file name extension not replaced. #18

Closed zapwong closed 5 months ago

zapwong commented 1 year ago

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"`
DavidAnson commented 1 year ago

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