Migrated from SixLabors to Magick.NET

This commit is contained in:
Laurent
2026-02-17 19:38:16 +01:00
parent 423c74dcb8
commit 5132ec1c16
4 changed files with 29 additions and 21 deletions

View File

@@ -51,7 +51,7 @@ public sealed class MainViewModel : INotifyPropertyChanged
public void ResizeGif()
{
if(FilePath == null && GifWidth == null && GifHeight == null) return;
if(FilePath == null && GifWidth == null && GifHeight == null) throw new InvalidOperationException("Please select a file before trying to resize.");
_gifService.ResizeGif(FilePath!, GifWidth!.Value, GifHeight!.Value);
CommonFormats
.Where(f => f.Checked)