Max Limit Of Image File In Corona? - Why My Image Is Blurry In Real-Device Testing But Looks Perfect In Simulator

hi, i dont know what’s wrong but i’m using a very long image as a background file in one of my scenes (pixel size for @2x is 800x11193). i’m using scrollView function of course because this is a scene where people can scroll to check on the listing. In simulator, it looks perfectly OK (image looks sharp) but when I test it using my real device (Xperia Z), the image became blurry. here I screenshot them:

fu9nj7.jpg

xwn9.jpg

top image is how it looks like in simulator

bottom image is how it looks like in my Xperia phone.

i’m wondering, why the image became blurry in my Xperia phone? I don’t have any other issue with other images. if they look good in simulator, they always look good in my phone as well. but why this one is different? is it because there’s “limitation” of image size for real device or why?

btw, this image size is 4,4431 KB where the standard one (not the @2x version) is 1,1910 KB but i think my Xperia always use the @2x for all images because the phone has 1080p resolution

Device’s have a max texture size.  On mobile devices this can be as low as 1024x1024 but more likely 2048x2048.  The simulator has a much larger maxTextureSize.  On Android, we resize that image to fit into a 2048x2048 box.  So you’re image becomes 146x2048 and then you’re stretching it back to 800x11,193.

You can either cut it into multiple images that are not larger that 2048 on any side, or just have the photo thumbnails and use rectangles and display.newText() to create the text objects.  It would be much smaller in size.

ok that makes sense, thanks. i have printed maxTextureSize in my device, apparently it’s 4096 but to be safe i would just make things 2048 at most

Device’s have a max texture size.  On mobile devices this can be as low as 1024x1024 but more likely 2048x2048.  The simulator has a much larger maxTextureSize.  On Android, we resize that image to fit into a 2048x2048 box.  So you’re image becomes 146x2048 and then you’re stretching it back to 800x11,193.

You can either cut it into multiple images that are not larger that 2048 on any side, or just have the photo thumbnails and use rectangles and display.newText() to create the text objects.  It would be much smaller in size.

ok that makes sense, thanks. i have printed maxTextureSize in my device, apparently it’s 4096 but to be safe i would just make things 2048 at most