I need to save an optimized jpeg (meaning minimal looses and maximal Compression). I noticed there is no built-in save that can do that so I wrote some code to take the original image and using some logic I am trying to …...minimal looses and maximal compression). I noticed there is no built-in...save the image at various compression levels and use SSIM to measure...