Updated output location
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user