You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a landscape image (with width longer than height), but the device is in portrait mode, the library does some wrong operations.
In ImageLoader, lines 424-430, the getImageSizeScaleTo function exchanges width with eight if the image is landscape and the devise is portrait (and vice versa).
In this way, if you have an image of WxH, where W > H, the image is scaled to HxW, then when the view is shown, it's scaled again to WxH... but the width W has the resolution of H, and the height H has the resolution W.
You can see in this image what the image should looks like (and hot the image is shown if commenting out lines 424-430) and how the image is shown at the moment http://i50.tinypic.com/2dt56y1.png
The text was updated successfully, but these errors were encountered:
Interesting... I try to remember why I included this piece of code for orientation consideration. For now it seems to be really wrong. I'll check it and fix it in the following lib version.
Thank you for bug :)
If you have a landscape image (with width longer than height), but the device is in portrait mode, the library does some wrong operations.
In ImageLoader, lines 424-430, the getImageSizeScaleTo function exchanges width with eight if the image is landscape and the devise is portrait (and vice versa).
In this way, if you have an image of WxH, where W > H, the image is scaled to HxW, then when the view is shown, it's scaled again to WxH... but the width W has the resolution of H, and the height H has the resolution W.
You can see in this image what the image should looks like (and hot the image is shown if commenting out lines 424-430) and how the image is shown at the moment
http://i50.tinypic.com/2dt56y1.png
The text was updated successfully, but these errors were encountered: