forked from github/cordova-android
e0eadb6b76
Instead of reading the entire image into a bitmap then scaling we use the inSampleSize option to get a close to the target width and height as possible then we scale that smaller image.