Skip to content

Commit 3dcb4db

Browse files
committed
Add test for gray tiff jpeg compressed
1 parent 3f93318 commit 3dcb4db

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ public void TiffDecoder_CanDecode_PackBitsCompressed<TPixel>(TestImageProvider<T
370370
[WithFile(RgbWithStripsJpegCompressed, PixelTypes.Rgba32)]
371371
[WithFile(YCbCrJpegCompressed, PixelTypes.Rgba32)]
372372
[WithFile(RgbJpegCompressedNoJpegTable, PixelTypes.Rgba32)]
373+
[WithFile(GrayscaleJpegCompressed, PixelTypes.Rgba32)]
373374
public void TiffDecoder_CanDecode_JpegCompressed<TPixel>(TestImageProvider<TPixel> provider)
374375
where TPixel : unmanaged, IPixel<TPixel> => TestTiffDecoder(provider, useExactComparer: false);
375376

tests/ImageSharp.Tests/TestImages.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ public static class Tiff
772772

773773
public const string GrayscaleDeflateMultistrip = "Tiff/grayscale_deflate_multistrip.tiff";
774774
public const string GrayscaleUncompressed = "Tiff/grayscale_uncompressed.tiff";
775+
public const string GrayscaleJpegCompressed = "Tiff/JpegCompressedGray.tiff";
775776
public const string PaletteDeflateMultistrip = "Tiff/palette_grayscale_deflate_multistrip.tiff";
776777
public const string PaletteUncompressed = "Tiff/palette_uncompressed.tiff";
777778
public const string RgbDeflate = "Tiff/rgb_deflate.tiff";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:868afd018d025ed7636f1155c1b1f64ba8a36153b56c7598e8dee18ce770cd5a
3+
size 539660

0 commit comments

Comments
 (0)