-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to maintain aspect ratio on resize (#971)
* Add option to resize one dimension and maintain aspect ratio. * Update src/utils/image.js Reduce function calls for optimisation. Co-authored-by: Joshua Lochner <[email protected]> * Optimise image utils tests. * nullish dimension may be `null`, `undefined`, or `-1` --------- Co-authored-by: Joshua Lochner <[email protected]>
- Loading branch information
1 parent
d38134d
commit 23647e2
Showing
3 changed files
with
77 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters