From 423c74dcb8f009a56a3b58bdc50404b0645501cd Mon Sep 17 00:00:00 2001 From: Laurent <2-naaturel@users.noreply.gitlab.example.com> Date: Tue, 17 Feb 2026 18:31:42 +0100 Subject: [PATCH] Updated output location --- GifResizer/GifResizer.csproj | 12 +++++++----- GifResizer/Service/GifService.cs | 4 +++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/GifResizer/GifResizer.csproj b/GifResizer/GifResizer.csproj index f132e63..c082caf 100644 --- a/GifResizer/GifResizer.csproj +++ b/GifResizer/GifResizer.csproj @@ -1,11 +1,13 @@  - WinExe - net10.0-windows - enable - enable - true + WinExe + net10.0-windows + enable + enable + true + true + win-x64 diff --git a/GifResizer/Service/GifService.cs b/GifResizer/Service/GifService.cs index 5afc3ca..ca71217 100644 --- a/GifResizer/Service/GifService.cs +++ b/GifResizer/Service/GifService.cs @@ -18,9 +18,11 @@ public class GifService public void ResizeGif(string filePath, int width, int height) { + string downloadsFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads"); + string fileName = Path.GetFileNameWithoutExtension(filePath); using Gif gif = new Gif(filePath); gif.Load(); gif.Resize(width, height); - gif.Save(Path.Combine(Directory.GetCurrentDirectory(), "output", $"{width}x{height}.gif")); + gif.Save(Path.Combine(downloadsFolder, "gif-resizer", fileName, $"{fileName}-{width}x{height}.gif")); } } \ No newline at end of file