Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Image size issue on Android
Forum Updated to NodeBB v4.3 + New Features

Image size issue on Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 581 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • dheerendraD Offline
    dheerendraD Offline
    dheerendra
    Qt Champions 2022
    wrote on last edited by
    #1
    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.

    Dheerendra
    @Community Service
    Certified Qt Specialist
    http://www.pthinks.com

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      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...

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved