diff --git a/src/modules/imageresizer/ui/App.xaml.cs b/src/modules/imageresizer/ui/App.xaml.cs index c661a6aabd..0e98234e64 100644 --- a/src/modules/imageresizer/ui/App.xaml.cs +++ b/src/modules/imageresizer/ui/App.xaml.cs @@ -96,13 +96,6 @@ namespace ImageResizer { try { - bool isArchitectureSupported = System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.Arm64; - - if (!isArchitectureSupported) - { - return AiAvailabilityState.NotSupported; - } - // Check Windows AI service model ready state var readyState = Services.WinAiSuperResolutionService.GetModelReadyState(); @@ -116,6 +109,7 @@ namespace ImageResizer return AiAvailabilityState.ModelNotReady; case Microsoft.Windows.AI.AIFeatureReadyState.DisabledByUser: + case Microsoft.Windows.AI.AIFeatureReadyState.NotSupportedOnCurrentSystem: default: return AiAvailabilityState.NotSupported; } diff --git a/src/modules/imageresizer/ui/Services/WinAiSuperResolutionService.cs b/src/modules/imageresizer/ui/Services/WinAiSuperResolutionService.cs index c883ce26cf..4cd752184a 100644 --- a/src/modules/imageresizer/ui/Services/WinAiSuperResolutionService.cs +++ b/src/modules/imageresizer/ui/Services/WinAiSuperResolutionService.cs @@ -23,6 +23,7 @@ namespace ImageResizer.Services private bool _disposed; /// + /// Initializes a new instance of the class. /// Private constructor. Use CreateAsync() factory method to create instances. /// private WinAiSuperResolutionService(ImageScaler imageScaler)