Browse Source

Better test image for near lossless

pull/1552/head
Brian Popow 5 years ago
parent
commit
ee90c31c20
  1. 1
      tests/ImageSharp.Tests/Formats/Tiff/TiffMetadataTests.cs
  2. 10
      tests/ImageSharp.Tests/Formats/WebP/WebpEncoderTests.cs
  3. 2
      tests/ImageSharp.Tests/TestImages.cs
  4. 3
      tests/Images/Input/WebP/rgb_pattern.png
  5. 3
      tests/Images/Input/WebP/rgb_pattern_100x100.png

1
tests/ImageSharp.Tests/Formats/Tiff/TiffMetadataTests.cs

@ -17,6 +17,7 @@ using static SixLabors.ImageSharp.Tests.TestImages.Tiff;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Collection("RunSerial")]
[Trait("Format", "Tiff")]
public class TiffMetadataTests
{

10
tests/ImageSharp.Tests/Formats/WebP/WebpEncoderTests.cs

@ -81,11 +81,11 @@ namespace SixLabors.ImageSharp.Tests.Formats.Webp
}
[Theory]
[WithFile(RgbTestPattern, PixelTypes.Rgba32, 85)]
[WithFile(RgbTestPattern, PixelTypes.Rgba32, 60)]
[WithFile(RgbTestPattern, PixelTypes.Rgba32, 40)]
[WithFile(RgbTestPattern, PixelTypes.Rgba32, 20)]
[WithFile(RgbTestPattern, PixelTypes.Rgba32, 10)]
[WithFile(RgbTestPattern100x100, PixelTypes.Rgba32, 85)]
[WithFile(RgbTestPattern100x100, PixelTypes.Rgba32, 60)]
[WithFile(RgbTestPattern100x100, PixelTypes.Rgba32, 40)]
[WithFile(RgbTestPattern100x100, PixelTypes.Rgba32, 20)]
[WithFile(RgbTestPattern100x100, PixelTypes.Rgba32, 10)]
[WithFile(RgbTestPattern63x63, PixelTypes.Rgba32, 40)]
public void Encode_Lossless_WithNearLosslessFlag_Works<TPixel>(TestImageProvider<TPixel> provider, int nearLosslessQuality)
where TPixel : unmanaged, IPixel<TPixel>

2
tests/ImageSharp.Tests/TestImages.cs

@ -508,7 +508,7 @@ namespace SixLabors.ImageSharp.Tests
// Test pattern images for testing the encoder.
public const string TestPatternOpaque = "WebP/testpattern_opaque.png";
public const string TestPatternOpaqueSmall = "WebP/testpattern_opaque_small.png";
public const string RgbTestPattern = "WebP/rgb_pattern.png";
public const string RgbTestPattern100x100 = "WebP/rgb_pattern_100x100.png";
public const string RgbTestPattern63x63 = "WebP/rgb_pattern_63x63.png";
// Test image for encoding image with a palette.

3
tests/Images/Input/WebP/rgb_pattern.png

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5150fccc821b2196678771d46567e01af4702c53e4031aee24e2611cecfdf48e
size 12841

3
tests/Images/Input/WebP/rgb_pattern_100x100.png

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:12f39b990367eb09ffbe69eb11bf970b5386e75a02a820e4740e66a079dda527
size 30225
Loading…
Cancel
Save