jdamcd / android-crop

Android library project for cropping images
4.54k stars 1.08k forks source link

Square cropping doesn't always returns a square #237

Open alfonsinbox opened 8 years ago

alfonsinbox commented 8 years ago

After some playing around, I have noticed that when using either asSquare() or withAspect(1, 1) the resulting image sometimes gets one pixel wider on one the sides. This feature is kind of crucial for my app as I need the dimensions to always be equal to each other. This happens about one in five times or so. Is there a fix on the way?