mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
735 B
27 lines
735 B
using SixLabors.ImageSharp.Formats.WebP;
|
|
using SixLabors.ImageSharp.PixelFormats;
|
|
using Xunit;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.WebP
|
|
{
|
|
using static TestImages.WebP;
|
|
|
|
public class WebPEncoderTests
|
|
{
|
|
[Theory]
|
|
[WithFile(TestImages.Bmp.Car, PixelTypes.Rgba32)]
|
|
public void Encode_Lossless_Works<TPixel>(TestImageProvider<TPixel> provider)
|
|
where TPixel : unmanaged, IPixel<TPixel>
|
|
{
|
|
var encoder = new WebPEncoder()
|
|
{
|
|
Lossy = false
|
|
};
|
|
|
|
using (Image<TPixel> image = provider.GetImage())
|
|
{
|
|
image.VerifyEncoder(provider, "webp", "lossless", encoder);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|