Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chhoda

macrumors 6502
Original poster
Oct 25, 2008
285
1
performance wise whch is preferred ? pngs or jpgs ? jpg take lot more memory than pngs ? any statistics on this, anybody ?

CH
 
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.
 
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.
 
For what it's worth PNG is also a lossless format (theoretically no quality loss when compressed).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.