Photos with lower-res don't fill view on iPhone 6 Plus
andr3a88 opened this issue · 4 comments
andr3a88 commented
Deleted user commented
I had this problem too, I juste reverted the two tests in gestResizeRatioFromImage:width:height on line 327 and 353 from
if (widthDiff > heightDiff)
to
if (widthDiff < heightDiff)
andr3a88 commented
My JBKenBurs class reaches 343 lines. You mean inside "Wider than screen" or "No wider than screen"?
I tried many times but sometimes the problem comes back.
// Wider than screen
if (image.size.width > frameWidth)
{
...
}
// No wider than screen
else
{
...
}
crairdin commented
I apologize for not figuring out how to actually fix this in GitHub but these three lines do everything getResizeRatioFromImage:width:height: fails to do in 50:
float hRatio = frameHeight / image.size.height;
float wRatio = frameWidth / image.size.width;
return hRatio > wRatio ? hRatio : wRatio;
shahimclt commented