DEBUG and RELEASE mode
Issue originally identified by @jrdiver in #1547 Thanks for that!
The new vectorized subsampling algorithm introduced in #1517 by @tkp1n is creating artifacts in our jpeg output. Unfortunately our regression tests did not capture the issue.


Simply resaving the input image is enough ensuring the quality is low enough to trigger 4:2:0 subsampling.
c#
using (var image = Image.Load(Path.Combine(inPath, "fb.jpg")))
{
image.Save(Path.Combine(outPath, "fb.jpg"), new JpegEncoder { Quality = 75 });
}
I'm not sure quality matters here. This is the output EncodeBaseline_WorksWithDifferentSizes_Rgba32_TestPattern600x400_Ratio420-Q100.jpeg which should run with Quality=100 if everything is correct:

Quality just triggers the subsampling when < 91 so yes, explicitly setting the property would be enough.
This should have been caught by our tests. Opened #1550.
@tkp1n any chance you can take a look?
I found the issue.. expect a PR coming soon
Most helpful comment
I found the issue.. expect a PR coming soon