Log.e("ASD", "W " + width + " SW " + screenwidth);\r
\r
if (width > screenwidth) {\r
- scale = (int) Math.ceil((Math.ceil(Math.max(height, width) / screenwidth)));\r
+ scale = (int) Math.ceil((float)width / screenwidth);\r
options.inSampleSize = scale;\r
}\r
\r