[TIMOB-2919] High-Res remote image on Retina display are Pixeling
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2012-07-26T13:37:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Armindo Da Silva |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:32:57.000+0000 |
Updated | 2012-07-26T21:30:22.000+0000 |
Description
Hi, I use sdk 1.51 and have some problem with high-res image.
I have found 2 cases, and have only found a workaround for one of both.
1 - if the remote image (let's say 120x120 pix) is downloaded is downloaded and saved in the document folder and saved as myimage.jpg and I do :
img = Ti.UI.createImageView({
image:myimage.jpg,
width:60,
height:60
});
image appear pixelated... never found this problem on XCode. to make it work the workaround is to save the image as myimage@2x.jpg, while keeping the url of file to myimage.jpg. This is a workaround but not logic in my mind, this need to be fix in SDK.
now if the image is not save to the iphone but the "remote" url is used directly (image is still 120x120) and imageview size is 60x60, the image appear pixelated. For this, I didn't found a workaround. I see on the Q&A that someone use a webview to fix this, but this is a bad idea when it is in a cell of tableview, webviews eat a lot of ressources.
Any help or fix is welcome.
Regards
Armindo
Requires complete & valid test case
When this is resolved the ticket may be reopened.