diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-06 09:49:36 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-06-06 09:49:36 +0300 |
commit | 453faf853b792344c76f493acd979f842c7d3d22 (patch) | |
tree | b2926e5020d51b6156fb7e9cb4c8a28caeaa9197 | |
parent | e7cd6decdb2ba1088efa18adcac8da6607d517a6 (diff) |
Fix Linux path to thumbnail files
-rw-r--r-- | Services/ImageResizer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |