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

Resize image to fit in box #722

Open
tobiasBora opened this issue May 9, 2024 · 0 comments
Open

Resize image to fit in box #722

tobiasBora opened this issue May 9, 2024 · 0 comments

Comments

@tobiasBora
Copy link

tobiasBora commented May 9, 2024

If I have two kinds of images with the same aspect ratio but some are in landscape mode and some are in portrait, I can't find a way to resize them so that they fit in a given NxN square. When using w=XXX, the height might be significantly larger or smaller (depending on the aspect ratio and portrait/landscape). Similarly, I might want a box to fit in a picture to be sure it is big enough. So it would be great to have something like:

atMost=500x500

and for the other option:

atLeast=500x500

Am I missing an obvious option?

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