@@ -26,6 +26,7 @@ public class PbmEncoderTests
2626 {
2727 { BlackAndWhiteBinary , PbmColorType . BlackAndWhite } ,
2828 { BlackAndWhitePlain , PbmColorType . BlackAndWhite } ,
29+ { Issue2477 , PbmColorType . BlackAndWhite } ,
2930 { GrayscaleBinary , PbmColorType . Grayscale } ,
3031 { GrayscaleBinaryWide , PbmColorType . Grayscale } ,
3132 { GrayscalePlain , PbmColorType . Grayscale } ,
@@ -96,6 +97,11 @@ public void PbmEncoder_P1_Works<TPixel>(TestImageProvider<TPixel> provider)
9697 public void PbmEncoder_P4_Works < TPixel > ( TestImageProvider < TPixel > provider )
9798 where TPixel : unmanaged, IPixel < TPixel > => TestPbmEncoderCore ( provider , PbmColorType . BlackAndWhite , PbmEncoding . Binary ) ;
9899
100+ [ Theory ]
101+ [ WithFile ( Issue2477 , PixelTypes . Rgb24 ) ]
102+ public void PbmEncoder_P4_Irregular_Works < TPixel > ( TestImageProvider < TPixel > provider )
103+ where TPixel : unmanaged, IPixel < TPixel > => TestPbmEncoderCore ( provider , PbmColorType . BlackAndWhite , PbmEncoding . Binary ) ;
104+
99105 [ Theory ]
100106 [ WithFile ( GrayscalePlainMagick , PixelTypes . Rgb24 ) ]
101107 public void PbmEncoder_P2_Works < TPixel > ( TestImageProvider < TPixel > provider )
0 commit comments