Add WebP decoding support to Linux and Windows (#1314)

This commit is contained in:
mwilsnd
2023-07-09 08:57:42 -05:00
committed by GitHub
parent 412c3c1cce
commit 97c75856ad
14 changed files with 70 additions and 7 deletions

View File

@@ -78,6 +78,12 @@ TEST(Image, JPEGTile) {
EXPECT_EQ(256u, image.size.height);
}
TEST(Image, WebPTile) {
PremultipliedImage image = decodeImage(util::read_file("test/fixtures/image/tile.webp"));
EXPECT_EQ(256u, image.size.width);
EXPECT_EQ(256u, image.size.height);
}
TEST(Image, Resize) {
AlphaImage image({0, 0});