Skip to content
This repository was archived by the owner on Mar 17, 2023. It is now read-only.

Add configurable aspect ratios#66

Open
thirstycoda wants to merge 7 commits intoiamutkarshtiwari:masterfrom
thirstycoda:add_configurable_aspect_ratios
Open

Add configurable aspect ratios#66
thirstycoda wants to merge 7 commits intoiamutkarshtiwari:masterfrom
thirstycoda:add_configurable_aspect_ratios

Conversation

@thirstycoda
Copy link

I needed the ability to specify instagram aspect ratios in the crop feature, namely 4:5 and 1.91:1. This pull request allows you to override the default aspect ratios with your own set.

In addition to this, I want to display images edited with this library in a vertical scroll with the image filling the width of the screen. This will look weird if the photo is cropped to an aspect ratio of 1:10. Therefore, I have added the ability to set a minimum and maximum supported aspect ratio so you can allow free hand cropping but still protect your app from unusual aspect ratios

Apologies this change also includes the changes of my previous pull request (#65). I should have made a branch for those changes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant