diff --git a/tests/ImageProcessorCore.Tests/FileTestBase.cs b/tests/ImageProcessorCore.Tests/FileTestBase.cs index 53a7620ab7..48758f4d96 100644 --- a/tests/ImageProcessorCore.Tests/FileTestBase.cs +++ b/tests/ImageProcessorCore.Tests/FileTestBase.cs @@ -19,18 +19,20 @@ namespace ImageProcessorCore.Tests /// protected static readonly List Files = new List { + "TestImages/Formats/Png/pl.png", + "TestImages/Formats/Png/pd.png", //"TestImages/Formats/Jpg/Floorplan.jpeg", // Perf: Enable for local testing only - "TestImages/Formats/Jpg/Calliphora.jpg", - "TestImages/Formats/Jpg/turtle.jpg", + //"TestImages/Formats/Jpg/Calliphora.jpg", + //"TestImages/Formats/Jpg/turtle.jpg", //"TestImages/Formats/Jpg/fb.jpg", // Perf: Enable for local testing only //"TestImages/Formats/Jpg/progress.jpg", // Perf: Enable for local testing only //"TestImages/Formats/Jpg/gamma_dalai_lama_gray.jpg", // Perf: Enable for local testing only - "TestImages/Formats/Bmp/Car.bmp", + //"TestImages/Formats/Bmp/Car.bmp", // "TestImages/Formats/Bmp/neg_height.bmp", // Perf: Enable for local testing only //"TestImages/Formats/Png/blur.png", // Perf: Enable for local testing only //"TestImages/Formats/Png/indexed.png", // Perf: Enable for local testing only - "TestImages/Formats/Png/splash.png", - "TestImages/Formats/Gif/rings.gif", + //TestImages/Formats/Png/splash.png", + //"TestImages/Formats/Gif/rings.gif", //"TestImages/Formats/Gif/giphy.gif" // Perf: Enable for local testing only }; diff --git a/tests/ImageProcessorCore.Tests/Processors/Samplers/ResizeTests.cs b/tests/ImageProcessorCore.Tests/Processors/Samplers/ResizeTests.cs index c905fb51ce..fdd5496cb3 100644 --- a/tests/ImageProcessorCore.Tests/Processors/Samplers/ResizeTests.cs +++ b/tests/ImageProcessorCore.Tests/Processors/Samplers/ResizeTests.cs @@ -24,7 +24,7 @@ namespace ImageProcessorCore.Tests //{ "Lanczos3", new Lanczos3Resampler() }, //{ "Lanczos5", new Lanczos5Resampler() }, //{ "Lanczos8", new Lanczos8Resampler() }, - //{ "MitchellNetravali", new MitchellNetravaliResampler() }, + { "MitchellNetravali", new MitchellNetravaliResampler() }, //{ "Hermite", new HermiteResampler() }, //{ "Spline", new SplineResampler() }, //{ "Robidoux", new RobidouxResampler() }, @@ -51,7 +51,8 @@ namespace ImageProcessorCore.Tests Image image = new Image(stream); using (FileStream output = File.OpenWrite($"{path}/{filename}")) { - image.Resize(image.Width / 2, image.Height / 2, sampler, true, this.ProgressUpdate) + //image.Resize(image.Width / 2, image.Height / 2, sampler, true, this.ProgressUpdate) + image.Resize(555, 15, sampler, true, this.ProgressUpdate) .Save(output); } } diff --git a/tests/ImageProcessorCore.Tests/TestImages/Formats/Png/pd.png b/tests/ImageProcessorCore.Tests/TestImages/Formats/Png/pd.png new file mode 100644 index 0000000000..e06399fbb8 Binary files /dev/null and b/tests/ImageProcessorCore.Tests/TestImages/Formats/Png/pd.png differ diff --git a/tests/ImageProcessorCore.Tests/TestImages/Formats/Png/pl.png b/tests/ImageProcessorCore.Tests/TestImages/Formats/Png/pl.png new file mode 100644 index 0000000000..53920eef13 Binary files /dev/null and b/tests/ImageProcessorCore.Tests/TestImages/Formats/Png/pl.png differ