Browse Source

Fixed unresolved reference this.colorType

pull/1632/head
Dmitry Pentin 5 years ago
parent
commit
1b1d136f8c
  1. 2
      src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

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

Loading…
Cancel
Save