From 1b1d136f8c860bed912809ef86e43100bb80987d Mon Sep 17 00:00:00 2001 From: Dmitry Pentin Date: Fri, 21 May 2021 17:13:22 +0300 Subject: [PATCH] Fixed unresolved reference this.colorType --- src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs b/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs index 9ff3344531..b8568c4ab4 100644 --- a/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs +++ b/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs @@ -587,7 +587,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg 0x01 }; - if (this.colorType == JpegColorType.Luminance) + if (this.componentCount == 1) { subsamples = stackalloc byte[] {