diff --git a/src/modules/imageresizer/ui/Properties/Resources.Designer.cs b/src/modules/imageresizer/ui/Properties/Resources.Designer.cs
index 4acfe2ecbb..c5945ac6d2 100644
--- a/src/modules/imageresizer/ui/Properties/Resources.Designer.cs
+++ b/src/modules/imageresizer/ui/Properties/Resources.Designer.cs
@@ -59,7 +59,7 @@ namespace ImageResizer.Properties {
resourceCulture = value;
}
}
-
+
///
/// Looks up a localized string similar to All Files.
///
@@ -77,7 +77,7 @@ namespace ImageResizer.Properties {
return ResourceManager.GetString("Cancel", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to Height.
///
@@ -123,6 +123,15 @@ namespace ImageResizer.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to Gif files with animations may not be correctly resized..
+ ///
+ public static string Input_GifWarning {
+ get {
+ return ResourceManager.GetString("Input_GifWarning", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Ign_ore the orientation of pictures.
///
diff --git a/src/modules/imageresizer/ui/Properties/Resources.resx b/src/modules/imageresizer/ui/Properties/Resources.resx
index 1f168cf9fa..6afd36dd33 100644
--- a/src/modules/imageresizer/ui/Properties/Resources.resx
+++ b/src/modules/imageresizer/ui/Properties/Resources.resx
@@ -142,6 +142,9 @@
Ign_ore the orientation of pictures
+
+ Gif files with animations may not be correctly resized.
+
R_esize the original pictures (don't create copies)
diff --git a/src/modules/imageresizer/ui/ViewModels/InputViewModel.cs b/src/modules/imageresizer/ui/ViewModels/InputViewModel.cs
index c96f34b887..5033fbf5aa 100644
--- a/src/modules/imageresizer/ui/ViewModels/InputViewModel.cs
+++ b/src/modules/imageresizer/ui/ViewModels/InputViewModel.cs
@@ -2,6 +2,7 @@
// The Brice Lambson licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/
+using System.Linq;
using System.Windows.Input;
using ImageResizer.Helpers;
using ImageResizer.Models;
@@ -42,6 +43,15 @@ namespace ImageResizer.ViewModels
public ICommand CancelCommand { get; }
+ public bool TryingToResizeGifFiles
+ {
+ get
+ {
+ // Any of the files is a gif.
+ return _batch.Files.Any(filename => filename.EndsWith(".gif", System.StringComparison.InvariantCultureIgnoreCase));
+ }
+ }
+
public void Resize()
{
Settings.Save();
diff --git a/src/modules/imageresizer/ui/Views/InputPage.xaml b/src/modules/imageresizer/ui/Views/InputPage.xaml
index dc62699277..cccbd62df5 100644
--- a/src/modules/imageresizer/ui/Views/InputPage.xaml
+++ b/src/modules/imageresizer/ui/Views/InputPage.xaml
@@ -185,7 +185,6 @@
-
-
+
-
+