Important: Please read the Qt Code of Conduct -

Image size issue on Android

  • Qt Champions 2017

    1. I have 10 PNG images and loading all them on screen using Image element.
    2. Each image is around 2KB. So total is around 2 MB.
    3. When I load each of them using Image element, memory usage of App on android shoots by around 25 MB.
    4. If don't load the images, memory for that app is decreased by 25 MB.
    5. I need to show all the images at same time.

    Any hints how to reduce this memory consumption ? It looked very high to me.

  • To assess the memory consumption, note that PNGs are compressed on disc files. The in-memory size is probably width x height x 4 bytes plus some overhead.
    ...But for any Qt device 25 megs is completely ok...

Log in to reply