toResizeOptions
Converts an ImageResizeOptions (TakePicture/GetImageFromGallery's resize) into the cmpimgcompress library's own ResizeOptions. Only takes effect when paired with a non-null CompressionScheme — resizing is applied as part of the same re-encode pass.