naver / android-imagecropview

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

Wrong aspect ratio for transparent zone #15

Closed dmitriid8 closed 8 years ago

dmitriid8 commented 8 years ago

After setAspectRatio(3, 1) result cropping zone height looks bigger. As I understand it should working like if width = 600px, height will be 200. Is it right?

Thank you!

helloyako commented 8 years ago

@dmitriid8 First, I'm sorry for too late answer your question

I tested my library, after checked your issue. However, I can't find any bugs.

original image : 3024 * 4032 setAspectRatio(3,1) cropped image : 3024 * 1008

It's correct

if you have any question, I am aways welcome 😄

Thank you.

dmitriid8 commented 8 years ago

My image size 5312x2988. My actions queue is: setAspectRatio(3,1); setImageURI("uri to file from camera"); getCroppedImage();

As result I get image 5312x1411, but should 5312x1770.

Do you have idea what may be wrong? screenshot_2016-07-25-10-08-59