forem / ForemWebView-ios

Forem core interface SDK
GNU General Public License v3.0
22 stars 7 forks source link

Allow client to specify crop size of image selector/camera #21

Closed benhalpern closed 3 years ago

benhalpern commented 3 years ago

Currently we have the specific ratio of 1000/420 for main images. I think this should be configurable for admins, including restricting to only square, for example, or allowing any size up to some amount.

For the time being, we should at least support passing in the ratio into YPImagePicker...

It looks like we might be able to use this config:

config.showsCrop = .rectangle(ratio: (100/42))

Or something else. Some way we should be able to pass that in.

Any scenario where we are not cropping the image (like a body image within a post or comment) we do not want to pass this config.