Questions on PNG files

Discussion in 'iOS Programming' started by Fuzzball27, Nov 12, 2011.

  1. Fuzzball27 macrumors member


    Aug 8, 2011
    I understand that iOS uses .png files for icons and similar graphics. I'm curious if there is a standard application for creating custom png files? Also, is there any other file type used in iOS for graphics besides .png?
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    Use whatever image app you like. Obviously Photoshop is popular but any one will do. You can of course save your PS image in png or jpeg or something else.

    You can use jpeg or png or others. png has transparency. jpeg can take up less memory on disk. Both will take up the same ram for the same dimensions on screen.

    In the early days there was some performance advantage for png over jpeg but I think that's not true any more.
  3. ArtOfWarfare macrumors G3


    Nov 26, 2007
    I personally use png, as it supports transparency.

    My workflow, which is probably unlike anyone else's, is:
    1.) Draw my image in Keynote or Numbers.
    2.) Drag select everything you want, and copy.
    3.) Open it in a free program I downloaded called ClipEdit, available here:
    (Go to File > New > Clipping from Clipboard)
    4.) Copy again.
    5.) Open it in Preview
    (Go to File > New from Clipboard)
    6.) Crop.
    7.) Save.
    8.) Drag file to Xcode.

    Excessively complicated? Probably. Works? Perfectly.
    (I use ClipEdit between the other apps because otherwise Preview will fill in the background of the image as white instead of transparent.)

Share This Page