I have a portrait image and I want to crop a part of it from center like 16:9 aspect ratio/or any other way, I did other things like placing on canvas and all, I just want the dynamic coordinates of it because testing on other mobile devices gives me different result.
example first image is original image and below that is crop image which I want[![original image](https://i.stack.imgur.com/N9B7U.jpg)](https://i.stack.imgur.com/N9B7U.jpg)
[![after crop](https://i.stack.imgur.com/FY9KA.jpg)](https://i.stack.imgur.com/FY9KA.jpg)