@@ -96,15 +96,18 @@ internal static Task<CompareResult> Compare(double threshold, ErrorMetric metric
9696 /// </summary>
9797 public static void ImageMagickComparer ( this VerifySettings settings , double threshold = .005 , ErrorMetric metric = ErrorMetric . Fuzz ) =>
9898 settings . UseStreamComparer (
99- ( received , verified , _ ) => Compare ( threshold , metric , received , verified ) ) ;
99+ ( received , verified , _ ) => Compare ( threshold , metric , received , verified ) ,
100+ extensions : [ "png" , "jpg" , "bmp" , "tiff" ] ) ;
100101
101102 /// <summary>
102103 /// Helper method that calls <see cref="RegisterPdfToPngConverter"/> and
103104 /// <see cref="RegisterComparers"/>(threshold = .005, metric = ErrorMetric.Fuzz)
104105 /// </summary>
105- public static SettingsTask ImageMagickComparer ( this SettingsTask settings , double threshold = .005 , ErrorMetric metric = ErrorMetric . Fuzz ) =>
106- settings . UseStreamComparer (
107- ( received , verified , _ ) => Compare ( threshold , metric , received , verified ) ) ;
106+ public static SettingsTask ImageMagickComparer ( this SettingsTask settings , double threshold = .005 , ErrorMetric metric = ErrorMetric . Fuzz )
107+ {
108+ settings . CurrentSettings . ImageMagickComparer ( threshold , metric ) ;
109+ return settings ;
110+ }
108111
109112 public static void RegisterComparer ( double threshold , ErrorMetric metric , string extension ) =>
110113 VerifierSettings . RegisterStreamComparer (
@@ -133,7 +136,6 @@ static Task<CompareResult> Compare(double threshold, ErrorMetric metric, IMagick
133136 """ ) ) ;
134137 }
135138
136-
137139 //
138140 // static ImageInfo BuildInfo(MagickImage image) =>
139141 // new()
@@ -165,4 +167,4 @@ static Task<CompareResult> Compare(double threshold, ErrorMetric metric, IMagick
165167 // BlackPointCompensation = image.BlackPointCompensation,
166168 // AnimationTicksPerSecond = image.AnimationTicksPerSecond
167169 // };
168- }
170+ }
0 commit comments