android - PNGs using more memory than GIFs -


i have created android app used lot of gifs. got feedback images not being displayed on galaxy s iii , used post realize gifs problem: images not loading on galaxy s3.

but left concern. borrowed code post give me how memory using. when using gifs values this:

i/memory  (  547): app memory: pss=12.15 mb i/memory  (  547): private=10.52 mb i/memory  (  547): shared=8.47 mb 

when switch pngs getting values this:

i/memory  (  547): app memory: pss=21.33 mb i/memory  (  547): private=20.18 mb i/memory  (  547): shared=14.02 mb 

why memory use higher when using pngs?

i have 110 images, ranging in size 75x75 1048x907 (1kb 148kb). total size of gifs 1.39mb , total size of pngs = 1.48mb. compression, using paint.net save them , using 'auto-detect' bit depth.

edit: went , looked , of images saved 8-bit, 256 color.

the fact gifs takes less disk space guess part confusing. seems android should handle pngs more ease.

i using surface view , calling canvas.drawbitmap

how big images? 2 seem vary... if images small, 10px x 10px gif comes out smaller. bigger images png (almost?) smaller file size.

in general use png assets matter, player in game, button etc. , jpeg backgrounds etc.

how compressing png's? if @ all?


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -