PDA

View Full Version : jpg or png




chhoda
Nov 14, 2009, 07:03 AM
performance wise whch is preferred ? pngs or jpgs ? jpg take lot more memory than pngs ? any statistics on this, anybody ?

CH



Stunner
Nov 14, 2009, 07:24 AM
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.

PhoneyDeveloper
Nov 14, 2009, 02:16 PM
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.

iLoveDeveloping
Nov 14, 2009, 02:24 PM
I use only PNG's they seem faster to load from my experience...

milani
Nov 15, 2009, 03:02 AM
For what it's worth PNG is also a lossless format (theoretically no quality loss when compressed).