Skip to content

Maintain aspect ratio when resizing image #14

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

Closed
andrei-micuda opened this issue Apr 3, 2022 · 2 comments
Closed

Maintain aspect ratio when resizing image #14

andrei-micuda opened this issue Apr 3, 2022 · 2 comments

Comments

@andrei-micuda
Copy link

Maybe we could have something like:

![[my_amazing_image.png|50 "Amazing Caption"]]

Meaning if we only specify one dimension for resizing (let's say by convention it would be the width), the height should automatically be adjusted to maintain the original ratio of the image.

bicarlsen added a commit that referenced this issue Apr 3, 2022
… image along one dimension as mentioned in [Issue #14](#14). Updated README to include documentation for feature.
@bicarlsen
Copy link
Owner

bicarlsen commented Apr 3, 2022

Great suggestions, thank you. This should be working in version 0.0.13. Give it a try and let me know.

You can use the keyword auto to allow auto-scaling along one of the directions. See the Rescaling section of the README for details.

@andrei-micuda
Copy link
Author

Awesome, I just updated the plugin and it works like a charm.
Thanks for the quick response and implementation!

Keep up the good work!

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

2 participants