Update FormatOutputPath to retrieve filename without extension.
This commit is contained in:
parent
134f833216
commit
a3c0c567f4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue