From a3c0c567f4ce0fca176bd7131c20f5f513923279 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sat, 22 Jan 2022 20:44:50 +0200 Subject: [PATCH] Update FormatOutputPath to retrieve filename without extension. --- Image/OriginalFilenameOutputFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }