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[] {