diff --git a/Image/OriginalFilenameOutputFormatter.cs b/Image/OriginalFilenameOutputFormatter.cs index a02cdbf..3ec8671 100644 --- a/Image/OriginalFilenameOutputFormatter.cs +++ b/Image/OriginalFilenameOutputFormatter.cs @@ -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; }