Bad image quality on Galaxy Tab (Android)

Hi,

I’ve tried to add a PNG background image to my app in many different ways, but they always looks very compressed on Android, like a JPEG image. This is only the case on Android, not on iOS.

What can I do?

Thanks! [import]uid: 88922 topic_id: 18449 reply_id: 318449[/import]

Hey there,

What build of Corona are you currently using? A fairly recent daily build had a number of improvements to the way in which images were displayed on Android.

Peach :slight_smile: [import]uid: 52491 topic_id: 18449 reply_id: 70809[/import]

Hi,

I use 696 and it looks good in the simulator, but when i run it on the tablet and phone and it looks bad. Worst at the tablet.

I’ve sat the virtual screen size to w=480, h = 800 in config.
The galaxyTab scale factor is 1.566 and scale is sat to letterbox.
I’ve also tried the other types of scaling and different scale factors.

The background image for the phones is 800x480 and 1251x751 for galaxy tab 10.1. I’ve also tried with different sizes for the tablet background. There are “circles” between different colors, as if the color depth has changed. [import]uid: 88922 topic_id: 18449 reply_id: 70818[/import]

If it is a huge image and the device does not have enough memory to load the image into memory, then Corona will load the image at 16-bit color quality instead of 32-bit color. This is better than not loading the image at all and is the only way a Corona app can support both high-end and low-end Android devices.

Just to confirm that this is happening, please run “adb logcat” on your Galaxy Tab when you startup your app. If Corona is lowering the quality of the image due to memory constraints, then it will say so in the log. [import]uid: 32256 topic_id: 18449 reply_id: 70947[/import]

Hi,

the png image was 865 KB, i also tried converting to jpg with quality 85. This was at 93 KB. The jpg was even worse than the png. Both looks fine at the computer.

Logcat did not say anything about changing the image. I also tried upgrading to version 699, same problems there.

When i went back to version 689, the images dispalyed properly! Both jpg and png. I’ve not tried the version between 689 and 696.

[import]uid: 88922 topic_id: 18449 reply_id: 71019[/import]

I just tried loading a 1251x751 image using build #700 on my Galaxy Tab and it looked fine. The image quality was not reduced. I did not see this problem on my Kindle Fire either. So, I can’t reproduce your issue. Can you send a small project that reproduces this issue please? You can do so by clicking the “Report a Bug” link at the top of this web page. Thanks! [import]uid: 32256 topic_id: 18449 reply_id: 71117[/import]

I’ve reported the bug with a sample project. Case #10258. [import]uid: 88922 topic_id: 18449 reply_id: 71398[/import]