AI2 converting high resolution images into very small images

223 views
Skip to first unread message

AppInv

unread,
Jan 15, 2016, 2:04:31 PM1/15/16
to MIT App Inventor Forum
I am building a simple application using AI2 and I am stuck with a problem. I am testing the app on a smartphone with a 4k screen and the app contains a simple ong image component with the sizes of 2160 x 1440.

I have already tried setting the sizes in the image component properties to the same sizes of the original image, it resizes to the define size as expected, but it looses a lot of quality, it's as if a small image is being expanded beyond its native size.

I also tried setting the sizes to fill both parent width and height, same problem as above.

I also left the sizes to automatic and then the image shows as a very tiny image, nowhere near the size of the original image.

It appears that the AI2 is converting the images to tiny images when the APK is being tested on the phone (no emulator, the built app) and I cannot find any way of making the app use the images with the original quality and size.

The image itself weighs only 877kb.

Is there any solution for this problem?

Taifun

unread,
Jan 15, 2016, 2:17:59 PM1/15/16
to MIT App Inventor Forum
Using Images with App Inventor 
Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

AppInv

unread,
Jan 15, 2016, 7:22:29 PM1/15/16
to MIT App Inventor Forum
Thanks for the information, it helped a lot. I am managing to overcome the limitations by playing with smaller sizes and higher dpi, this way the negative impact on the image quality due to over-scaling inside the app is minimized considerably.
Reply all
Reply to author
Forward
0 new messages