A new method that will take an input image, and take a req height and width as input and return a new image with exact same dims while respecting the aspect ratio.
We will need to add padding if we wish to maintain the aspect ratio, it will be great if we can specify the background color for the padding.
Why
This is helpful for preparing input image for various machine learning model, which expects the input to be of specific size.
Platforms
Android, iOS
Description
A new method that will take an input image, and take a req height and width as input and return a new image with exact same dims while respecting the aspect ratio.
We will need to add padding if we wish to maintain the aspect ratio, it will be great if we can specify the background color for the padding.
Why
This is helpful for preparing input image for various machine learning model, which expects the input to be of specific size.