jdamcd/android-crop — pull request #20 by daisy1754 (2014-06-04 14:46:17+00:00)
Title: Scale large image when loading in accordance with OpenGL texture size listriction

This PR should fix https://github.com/jdamcd/android-crop/issues/17

ImageView internally use OpenGL to draw bitmap and OpenGL has its max texture size (typically 2048x2048).
If you want to set too large image to your imageview, it won't throw error. It just log warning like "[WARN] : OpenGLRenderer: Bitmap too large to be uploaded into a texture" and doesn't display the bitmap.

This PR set inSampleSize parameter if image is larger than maximum texture size.