-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hi there!
Thanks for a great stuff!
I think you have little miscalculation in ImageResizer->calculateInSampleSize
long totalPixels = width * height / inSampleSize;
should be
long totalPixels = width / inSampleSize * height / inSampleSize;
and then
while (totalPixels > totalReqPixelsCap) {
inSampleSize *= 2;
totalPixels /= 2;
}
should be
while (totalPixels > totalReqPixelsCap) {
inSampleSize *= 2;
totalPixels /= 4;
}
After that you can instantiate ImageInternalFetcher with a smaller size (closer to the size of a thumb)
Metadata
Metadata
Assignees
Labels
No labels