0
0

Fix Linux path to thumbnail files

This commit is contained in:
Sergey Chebotar 2023-06-06 09:49:36 +03:00
parent e7cd6decdb
commit 453faf853b

View File

@ -8,7 +8,7 @@ namespace MyDarling.Services
{ {
using var input = File.OpenRead(inputPath); using var input = File.OpenRead(inputPath);
using var inputStream = new SKManagedStream(input); using var inputStream = new SKManagedStream(input);
var outputPath = Path.GetDirectoryName(inputPath) + "\\" + var outputPath = Path.GetDirectoryName(inputPath) + "/" +
Path.GetFileNameWithoutExtension(inputPath) + "_thumb.jpg"; Path.GetFileNameWithoutExtension(inputPath) + "_thumb.jpg";
WriteResized(inputStream, 600, outputPath); WriteResized(inputStream, 600, outputPath);
} }