|
|
|
@ -174,6 +174,19 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
await Assert.ThrowsAsync<TaskCanceledException>(async () => await Image.IdentifyAsync(config, "someFakeFile", cts.Token)); |
|
|
|
} |
|
|
|
|
|
|
|
// https://github.com/SixLabors/ImageSharp/pull/1732
|
|
|
|
[Theory] |
|
|
|
[WithFile(TestImages.Jpeg.Issues.WrongColorSpace, PixelTypes.Rgba32)] |
|
|
|
public void Issue1732_DecodesWithRgbColorSpace<TPixel>(TestImageProvider<TPixel> provider) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
{ |
|
|
|
using (Image<TPixel> image = provider.GetImage(new JpegDecoder())) |
|
|
|
{ |
|
|
|
image.DebugSave(provider); |
|
|
|
image.CompareToOriginal(provider); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// DEBUG ONLY!
|
|
|
|
// The PDF.js output should be saved by "tests\ImageSharp.Tests\Formats\Jpg\pdfjs\jpeg-converter.htm"
|
|
|
|
// into "\tests\Images\ActualOutput\JpegDecoderTests\"
|
|
|
|
|