20 lines
356 B
C#
20 lines
356 B
C#
using GifResizer.Models;
|
|
|
|
namespace GifResizer.Service;
|
|
|
|
public class ResizeService
|
|
{
|
|
|
|
public ResizeService()
|
|
{
|
|
|
|
}
|
|
|
|
public void ResizeGif(string filePath, int width, int height)
|
|
{
|
|
using Gif gif = new Gif(filePath);
|
|
gif.Load();
|
|
gif.Resize(width, height);
|
|
gif.Save("D:/test-output.gif");
|
|
}
|
|
} |