Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Using .png images versus jpeg

butterbeanbutterbean Posts: 4,315Member, PRO
What is best to use in terms of graphics, .png or jpeg? I noticed that jpeg images take up much less memory, does it matter if you use either or?


  • harrioharrio Posts: 234Member
    what's cookin,

    jpeg does not support transparency. png does.

  • superNESsuperNES Posts: 166Member
    So if you are using a fully opaque, rectangular image such as for a background or block, I'd suggest using jpegs. However, as Harrio mentions, if your image has transparencies, go with pngs.
  • TobyToby Posts: 478Member
    iPhone is optimised to display .png images best. Read a few forums regarding this and Apple suggest that when your iPhone app is compiled there are optimisations done to the PNG images. (Faster / smaller.... not entirely sure)

    Has something to do with how efficiently the image is stored in the iPhone GPU.
  • butterbeanbutterbean Posts: 4,315Member, PRO
    Interesting, thanks for all the info! I think I'll be using jpegs for background images since the memory or kb's is much less with those, and I can try to squeeze my game into under 10mb, but as for other images like characters, I'll use .png's

    That shouldn't affect memory usage that much right, or how efficiently a game runs? As far as the tester is concerned, I haven't noticed much of a difference
  • scorelessmusicscorelessmusic Posts: 565Member
    I just posted on this handy website on shrinking your PNGs. Maybe it'll help in your decisions. I've found that the site shrinks even the PNGs I churn out from photoshop but it's probably due to some mojo that I'm not savvy about, not being a pro designer.
This discussion has been closed.