public void TestEncodeJpeg() { Tensor image = ImageIO.ReadTensorFromImageFile("surfers.jpg"); byte[] jpegRaw = ImageIO.EncodeJpeg(image); File.WriteAllBytes("surefers_out.jpg", jpegRaw); }