Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Resize to exact size while maintaining aspect ratio. #278

Open
ua741 opened this issue Dec 20, 2023 · 0 comments
Open

Comments

@ua741
Copy link

ua741 commented Dec 20, 2023

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.

@ua741 ua741 changed the title Resize to exact size while maintaining aspect ratio. [Feature Request] Resize to exact size while maintaining aspect ratio. Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant