capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

feat(photo-editor): pick and crop to specified size

Open tobiasmuecksch opened this issue 4 years ago • 1 comments

Usecase description: In some cases, we need the users to crop an image to a specific size. A relevant use case would be a profile picture, which in most cases are rectangular (e.g. 400 x 400px).

Describe the solution you'd like: It would be really nice, if the developer could specify a target height and width. The user then sees a boundary which respects the given aspect ratio. The user can move the boundary around and change it's size (to only show the face on the picture for example). The plugin then returns the image in the given size.

If the user selects a bigger area (e.g. 800x800 px) the plugin should scale the size down to the specified size (400 x 400 in this example). The same should work the other way around 200 x 200 -> 400 x 400.

tobiasmuecksch avatar Mar 26 '22 19:03 tobiasmuecksch

Great idea! I will have a look at this.

robingenz avatar Mar 27 '22 10:03 robingenz