@@ -362,33 +362,32 @@ public void EncodedStringTags_Read()
362362 {
363363 ExifProfile exif = image . Metadata . ExifProfile ;
364364 VerifyEncodedStrings ( exif ) ;
365- }
365+ }
366+ }
366367
367- // https://github.com/SixLabors/ImageSharp/issues/2758
368- [ Theory ]
369- [ WithFile ( TestImages . Jpeg . Issues . Issue2758 , PixelTypes . L8 ) ]
370- public void Issue2758_DecodeWorks < TPixel > ( TestImageProvider < TPixel > provider )
371- where TPixel : unmanaged, IPixel < TPixel >
372- {
373- using Image < TPixel > image = provider . GetImage ( JpegDecoder . Instance ) ;
368+ [ Theory ( Skip = "2.1 JPEG decoder detects this image as invalid." ) ]
369+ [ WithFile ( TestImages . Jpeg . Issues . Issue2758 , PixelTypes . L8 ) ]
370+ public void Issue2758_DecodeWorks < TPixel > ( TestImageProvider < TPixel > provider )
371+ where TPixel : unmanaged, IPixel < TPixel >
372+ {
373+ using Image < TPixel > image = provider . GetImage ( ) ;
374374
375- Assert . Equal ( 59787 , image . Width ) ;
376- Assert . Equal ( 511 , image . Height ) ;
375+ Assert . Equal ( 59787 , image . Width ) ;
376+ Assert . Equal ( 511 , image . Height ) ;
377377
378- JpegMetadata meta = image . Metadata . GetJpegMetadata ( ) ;
378+ JpegMetadata meta = image . Metadata . GetJpegMetadata ( ) ;
379379
380- // Quality determination should be between 1-100.
381- Assert . Equal ( 15 , meta . LuminanceQuality ) ;
382- Assert . Equal ( 1 , meta . ChrominanceQuality ) ;
380+ // Quality determination should be between 1-100.
381+ Assert . Equal ( 15 , meta . LuminanceQuality ) ;
382+ Assert . Equal ( 1 , meta . ChrominanceQuality ) ;
383383
384- // We want to test the encoder to ensure the determined values can be encoded but not by encoding
385- // the full size image as it would be too slow.
386- // We will crop the image to a smaller size and then encode it.
387- image . Mutate ( x => x . Crop ( new ( 0 , 0 , 100 , 100 ) ) ) ;
384+ // We want to test the encoder to ensure the determined values can be encoded but not by encoding
385+ // the full size image as it would be too slow.
386+ // We will crop the image to a smaller size and then encode it.
387+ image . Mutate ( x => x . Crop ( new ( 0 , 0 , 100 , 100 ) ) ) ;
388388
389- using MemoryStream ms = new ( ) ;
390- image . Save ( ms , new JpegEncoder ( ) ) ;
391- }
389+ using MemoryStream ms = new ( ) ;
390+ image . Save ( ms , new JpegEncoder ( ) ) ;
392391 }
393392
394393 private static void VerifyEncodedStrings ( ExifProfile exif )
0 commit comments