diff --git a/src/ImageSharp/Formats/Gif/ImageExtensions.cs b/src/ImageSharp/Formats/Gif/ImageExtensions.cs
index 2c5496f52..f1c2ae5fb 100644
--- a/src/ImageSharp/Formats/Gif/ImageExtensions.cs
+++ b/src/ImageSharp/Formats/Gif/ImageExtensions.cs
@@ -58,7 +58,19 @@ namespace SixLabors.ImageSharp
}
///
- /// This method pre-seeds the default FloydSteinbergDiffuser in the AoT compiler for iOS.
+ /// This method pre-seeds the WuQuantizer in the AoT compiler for iOS.
+ ///
+ /// The pixel format.
+ public static void AotCompileWuQuantizer()
+ where TPixel : struct, IPixel
+ {
+ var test = new WuFrameQuantizer(new WuQuantizer(false));
+ test.QuantizeFrame(new ImageFrame(Configuration.Default, 1, 1));
+ test.AotGetPalette();
+ }
+
+ ///
+ /// This method pre-seeds the default dithering engine (FloydSteinbergDiffuser) in the AoT compiler for iOS.
///
/// The pixel format.
public static void AotCompileDithering()
diff --git a/src/ImageSharp/Processing/Processors/Quantization/WuFrameQuantizer{TPixel}.cs b/src/ImageSharp/Processing/Processors/Quantization/WuFrameQuantizer{TPixel}.cs
index 43d22597d..44df226cf 100644
--- a/src/ImageSharp/Processing/Processors/Quantization/WuFrameQuantizer{TPixel}.cs
+++ b/src/ImageSharp/Processing/Processors/Quantization/WuFrameQuantizer{TPixel}.cs
@@ -173,6 +173,8 @@ namespace SixLabors.ImageSharp.Processing.Processors.Quantization
}
}
+ internal TPixel[] AotGetPalette() => this.GetPalette();
+
///
protected override TPixel[] GetPalette()
{