From 453faf853b792344c76f493acd979f842c7d3d22 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 6 Jun 2023 09:49:36 +0300 Subject: [PATCH] Fix Linux path to thumbnail files --- Services/ImageResizer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/ImageResizer.cs b/Services/ImageResizer.cs index 8e09424..c9aeafa 100644 --- a/Services/ImageResizer.cs +++ b/Services/ImageResizer.cs @@ -8,7 +8,7 @@ namespace MyDarling.Services { using var input = File.OpenRead(inputPath); using var inputStream = new SKManagedStream(input); - var outputPath = Path.GetDirectoryName(inputPath) + "\\" + + var outputPath = Path.GetDirectoryName(inputPath) + "/" + Path.GetFileNameWithoutExtension(inputPath) + "_thumb.jpg"; WriteResized(inputStream, 600, outputPath); }