Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correct resizing for broad images, fixes #65

  • Loading branch information...
commit c2a7b2fa557d70d07a572456f4d087a5386ed014 1 parent 6866f1d
@friedger friedger authored
View
2  core/src/main/java/com/novoda/imageloader/core/bitmap/BitmapUtil.java
@@ -38,7 +38,7 @@ public Bitmap decodeFileAndScale(File f, int width, int height) {
updateLastModifiedForCache(f);
int suggestedSize = height;
if (width > height) {
- suggestedSize = height;
+ suggestedSize = width;
}
Bitmap unscaledBitmap = decodeFile(f, suggestedSize);
if (unscaledBitmap == null) {
Please sign in to comment.
Something went wrong with that request. Please try again.