In #3908 we fixed the test logic of the tests for encode_jpeg. Unfortunately, the new "correct" tests don't work on windows.
This issue is about a) making those new correct test work on windows and b) remove the old incorrect tests
For b), having a roundtrip test as proposed in #3912 might be enough to remove the old tests.
CC @fmassa @datumbox