|
@@ -864,6 +864,20 @@ TEST_CASE(test_tiff_ccitt3)
|
|
|
EXPECT_EQ(frame.image->get_pixel(60, 75), Gfx::Color::NamedColor::Black);
|
|
|
}
|
|
|
|
|
|
+TEST_CASE(test_tiff_ccitt3_no_tags)
|
|
|
+{
|
|
|
+ auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("tiff/ccitt3_no_tags.tiff"sv)));
|
|
|
+ EXPECT(Gfx::TIFFImageDecoderPlugin::sniff(file->bytes()));
|
|
|
+ auto plugin_decoder = TRY_OR_FAIL(Gfx::TIFFImageDecoderPlugin::create(file->bytes()));
|
|
|
+
|
|
|
+ auto frame = TRY_OR_FAIL(expect_single_frame_of_size(*plugin_decoder, { 6, 4 }));
|
|
|
+
|
|
|
+ EXPECT_EQ(frame.image->get_pixel(0, 0), Gfx::Color::NamedColor::White);
|
|
|
+ EXPECT_EQ(frame.image->get_pixel(3, 0), Gfx::Color::NamedColor::Black);
|
|
|
+ EXPECT_EQ(frame.image->get_pixel(2, 2), Gfx::Color::NamedColor::White);
|
|
|
+ EXPECT_EQ(frame.image->get_pixel(5, 3), Gfx::Color::NamedColor::White);
|
|
|
+}
|
|
|
+
|
|
|
TEST_CASE(test_tiff_ccitt3_fill)
|
|
|
{
|
|
|
auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("tiff/ccitt3_1d_fill.tiff"sv)));
|