Skip to content

Commit 5eaeafc

Browse files
committed
Added test case for issue #2983.
1 parent 385a940 commit 5eaeafc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,4 +833,9 @@ public void TiffDecoder_Decode_Resize<TPixel>(TestImageProvider<TPixel> provider
833833
[WithFile(ExtraSamplesUnspecified, PixelTypes.Rgba32)]
834834
public void TiffDecoder_CanDecode_ExtraSamplesUnspecified<TPixel>(TestImageProvider<TPixel> provider)
835835
where TPixel : unmanaged, IPixel<TPixel> => TestTiffDecoder(provider);
836+
837+
[Theory]
838+
[WithFile(Issue2983, PixelTypes.Rgba32)]
839+
public void TiffDecoder_CanDecode_Issue2983<TPixel>(TestImageProvider<TPixel> provider)
840+
where TPixel : unmanaged, IPixel<TPixel> => TestTiffDecoder(provider);
836841
}

tests/ImageSharp.Tests/TestImages.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,7 @@ public static class Tiff
11641164
public const string IptcData = "Tiff/iptc.tiff";
11651165

11661166
public const string Issue2909 = "Tiff/Issues/Issue2909.tiff";
1167+
public const string Issue2983 = "Tiff/Issues/Issue2983.tiff";
11671168

11681169
public static readonly string[] Multiframes = [MultiframeDeflateWithPreview, MultiframeLzwPredictor /*, MultiFrameDifferentSize, MultiframeDifferentSizeTiled, MultiFrameDifferentVariants,*/
11691170
];

0 commit comments

Comments
 (0)