jpg or png

Discussion in 'iOS Programming' started by chhoda, Nov 14, 2009.

  1. chhoda
    Expand Collapse
    macrumors 6502

    Joined:
    Oct 25, 2008
    #1
    performance wise whch is preferred ? pngs or jpgs ? jpg take lot more memory than pngs ? any statistics on this, anybody ?

    CH
     
  2. Stunner
    Expand Collapse
    macrumors newbie

    Joined:
    Sep 14, 2009
    #2
    PNGs over JPGs. I read about it in a iPhone development book. The iPhone OS optimizes PNGs and those are preferred, although JPGs would work just fine.
     
  3. PhoneyDeveloper
    Expand Collapse
    macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #3
    Once loaded into memory any image becomes a simple bitmap. So in terms of the memory taken up its the same for most or all image formats. PNG may decode faster than JPEG.
     
  4. iLoveDeveloping
    Expand Collapse
    macrumors regular

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #4
    I use only PNG's they seem faster to load from my experience...
     
  5. milani
    Expand Collapse
    macrumors 68000

    milani

    Joined:
    Aug 8, 2008
    #5
    For what it's worth PNG is also a lossless format (theoretically no quality loss when compressed).
     

Share This Page