naver / android-imagecropview

android image crop library
Apache License 2.0
254 stars 55 forks source link

Unable to display original image #40

Closed sundariragavan closed 5 years ago

sundariragavan commented 5 years ago

By default the image is displaying 1:1 aspect ratio. How to display the original image in starting.

helloyako commented 5 years ago

Hello, @sundariragavan. Thank you for contact me

As far as you know, default aspect ratio is 1:1.

I think you can get original image ratio or width and height.

So, you can set ratio when your app start.

@Override
public void onCreate(Bundle savedInstanceState) {
...
   int width = originalImage.width;
   int height = originalImage.height;
   imageCropView.setAspectRatio(width, height);
...
}