Update FormatOutputPath to retrieve filename without extension.

This commit is contained in:
Denis-Cosmin Nutiu 2022-01-22 20:44:50 +02:00
parent 134f833216
commit a3c0c567f4

View file

@ -14,7 +14,7 @@ namespace Image
public string FormatOutputPath(string filePath)
{
var fileName = Path.GetFileName(filePath);
var fileName = Path.GetFileName(filePath)?.Split(".")[0];
var path = Path.Join(_rootDirectory, $"{fileName}.jpg");
return path;
}