VNImageCropAndScaleOption.scaleFit
An option that scales the image to fit its longer side within the input dimensions, while preserving its aspect ratio, and center-crops the image.
Declaration
case scaleFitDiscussion
This option fills the remaining space with transparent pixels to maintain aspect ratio.