I have created my iPhone .png application 'icon' (57x57 with 72 Resolution), however, when I test on my iPhone 4, the image does not appear to cover the entire icon space (a tad small in height) and is a little blurred when compared to the original. Is this because of the high resolution display offered on the iPhone 4? How should I edit my image, so that the device will display a clear and correctly sized icon?
Thanks in Advance,
Jeremy
Create a new icon at 114x114. Call it icon#2x.png and add it to your Resources.
This will use the higher resolution icon for Retina displays.
You can see the full list of recommended icon names and sizes here http://developer.apple.com/library/ios/#qa/qa1686/_index.html
Indeed, you'll have to double the amount of pixels you have: create a 114x114 image and name it Icon#2x.png.
You should have a high quality icon (512x512) already if you plan to release your app on the app store, reducing it's size should work just fine.
Related
I have a few questions about screen resolution, that I'm not clear on. These questions assume they my app will be running on iOS 4.0 and up, and on either iPhone 3GS or iPhone 4.
Should the size of the splash image (default.png) be (960x640) or (480x320)?
Should the size of the app icon (Icon.png) be (57x57) or (114x114)?
What about other graphics that I may use in my app, such a graphic that represents a button? Should I always create these images for the higher resolution, and have the app scale them down? In other words, if I want a button image to be displayed on the 3GS that is 200x40 - should I create the image at 400x80, so that iPhone 4 can take advantage of it?
Thanks!
A good guide to this can be found here: http://mobile.tutsplus.com/tutorials/iphone/preparing-your-iphone-app-for-higher-resolutions/
In general you just create 2 sets of images. Your original and then a new one twice as big with #2x in the name. So for image.png at size 32x32 you would have one that is twice the resolution called image#2x.png at size 64x64. In your app just always use the image.png in Interface Builder and when loading in code.
There is no need to detect the device. These images will automatically be picked up by the OS and subbed in as necessary.
Provide both sizes (960x640 & 480x320) for the splash image using the #2x method described above
Provide both icons (57x57 & 114x114) using the #2x method
For our apps we use a combination of the #2x images and just Scaling the large images. (More information on this can be found in the above article) We use the #2x images for bar buttons, icons, etc. But for UIImageViews we often just use the Scaling. There can be a performance hit for doing this, but for most apps I'd say this is negligible. The savings in file size sometimes make scaling the only option.
Related Questions:
Retina/non-retina images in UIImageView
Making an app Retina Display friendly
You need to provide both if you want them to look nice. For example,
Default.png -> (480x320)
Amd
Default#2x.png -> (960x640)
I have an app and would like to make it retina display friendly.
How exactly does the process work? What images need to be added apart from what I have?
I know the sizes should be different, but am not sure on the details?
What else needs to be done to handle retina display?
Should the device be detected and use other images if the device supports retina display?
What if there are a lot of images? And how will this effect the app size?
Thanks
A good guide to this can be found here: http://mobile.tutsplus.com/tutorials/iphone/preparing-your-iphone-app-for-higher-resolutions/
In general you just create 2 sets of images. Your original and then a new one twice as big with #2x in the name. So for image.png at size 32x32 you would have one that is twice the resolution called image#2x.png at size 64x64. In your app just always use the image.png in Interface Builder and when loading in code.
There is no need to detect the device. These images will automatically be picked up by the OS and subbed in as necessary.
good articles if you're using sprites
http://weedygarden.net/2012/04/hi-res-retina-display-css-sprites/
The main thing about working with retina image is that image name convention.
And the size of image should be 2times greater than regular1.
Example- if your icon name for regular is icon.png then it should be icon#2x.png for
retina.And second thing is size for regular is 72*72 then it should be 144*144 for Retina.
It might be helpful for you.
Thnks
I hope to create an iphone window based app for retina screen?
But I found that the size of window in mainwindow.xib is fixed.
How to adjust it or there is any to tell interface builder create window for retina pixel size?
Welcome any comment
Thanks
interdev
There's no need to do anything in terms of the various components you layout in Interface Builder, as it's based around points, not pixels - and as all the iPhone screens sizes are the same in points no action is required.
In terms of any images you're loading, you will need to supply higher resolution (twice the pixel size) versions, but as long as these are named "[original name]#2x.[extension]" they'll simply work automatically.
For more information on the image naming, see the "Specifying High-Resolution Images in iOS" section of the Resource Programming Guide and if you want to delve a little deeper, there's a discussion on "Points Versus Pixels" within the Drawing and Printing Guide for iOS.
UPDATE - As of the iPhone 5, the iPhone screens are no longer all the same point size. :-)
The window will be automatically resized for you, you do need concern about the size of your image elements, since retina display uses a bigger size of resolution. You need name your images like this:
regular image name: myimage.png
retina image name: myimage#2x.png
When running in an iPhone4 your program will identify the token "#2x" and change the images for that kind of device.
Design your layout using the size of: 640x960 (double of the original: 320x480)
Good luck.
I am having a problem in iphone 4. The images used in iPhone less than 4 are fine but when I upgraded to iphone 4 the images looks distorted.
Here is the link.
The image size I have used is 320 x 480.
http://img822.imageshack.us/img822/8431/download22.png
Thanks.
The fact is that the resolution of iPhone4 is 960x640 instead that 480x320 so the image is scaled with linear (or bilinear, not sure) filtering.. the result is what you get: a blurry image.
Just redo the image with the proper resolution to solve the problem, you mainly notice these kinds of artifacts because you have rasterized text on an image..
You obtain this effect whenever you resize an image to fit a wider area of pixels: the missing pixels must be filled somehow and filtering comes into play. So you will have to consider also that part of the screen is used by the top bar to have an exact sized picture.
Create a #2x suffix to each of your png that you use.
example:
Icon.png
Icon#2x.png
The runtime environment will choose the double-resolution on retina display devices.
It looks like your original image is 480x320, but you aren't accounting for the fact that the status bar is compressing your image slightly (or perhaps it does on the iPhone4 but on the older iPhones it is cropping instead).
I'd check the image view settings for that background image.
What are the specifications for the icons required by Apple for a custom iPhone application published?
57x57, PNG, No Transparency, No Layers, 72 PPI
512x512, TIFF or JPEG, No Transparency, No Layers, 72 PPI
Note: iPhone OS applies rounded corners, optionally shine, and other effects
Also have a large version of your logo with the name of the application in case Apple contacts you needing a version for marketing purposes.
The icon should be a 57x57 pixel PNG. The PNGs generated by Apple have a PPI of 72.01 so I guess something in that range will work fine. Don't have a very high PPI else images are not rendered properly.
If you want to use a custom icon and not let the iPhone to apply the gloss to your icon, add a key to info.plist called UIPrerenderedIcon (is a boolean value) and make it checked.
When submitting the app to the app store, you will need a 512x512 pixel version of your app's icon (this one in jpeg or tiff format) and at least one screenshot of your app. You can have additional 4 screenshots of the app.
EDIT
Now the specs for icon (to be submitted in iTunes connect) and the app icons have changed. The icon to be submitted to itunesconnect must be 1024x1024 px.
For the app icons, you can find details here - http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW1
Also, make sure the icon files are NON-INTERLACED PNG files. Recently one of our apps' binary was marked invalid since one of the app icon files was an interlaced PNG.
From here:
To ensure that your icon can take advantage of these visual enhancements, provide an image in PNG format that:
Measures 57 x 57 pixels, with 90 degree corners (if the image measures other than this size, iPhone OS scales it)
Does not have any shine or gloss
Name your icon file Icon.png and place it at the top level of your application bundle.
As of May 2012, the official Apple Docs include this chart:
This describes the icons that must be visible in the app. The docs also say the file must be jpeg or png but doesnt specify a dpi.
You must also include a larger copy for the page in iTunes. Again, from the apple docs
full docs available here.
The new retina display is at 114 x 114 for icons.
To submit app to iTunes store you need to have following sizes:
57x57
72x72
114x114
228x228
512x512
Reference: http://ios-funda.blogspot.in/2013/02/all-icon-size-needed-for-app-store.html
The app store is looking for a 512x512 icon as well (not sure the PPI). Best bet is just to design it as vector then you can easily resize and export it as whatever.
This blog post describes all icon sizes and where are they used.
57x57 pixels png... you can choose via code to apply or not the gloss effect.
I made a complete list of the ten (10) needed app icon files in my blog post, iOS App Icons, Listed and Summarized . My information is current as of iOS 3, 4, 5, and 6. Two links take you to the crucial Apple documentation.
I show three tables, each listing the icon files needed for:
Handheld devices (iPhone, iPod touch)
Tablet devices (iPad)
iTunes & App Store
Note: iOS ignores the PPI (Pixels Per Inch) of icon images. You may
author your icon images at any PPI but their width and height, as
measured in pixels, must match the values in the tables below.
This is coming from Apple Technical Q&A QA1686 and contains also information about sizes and files types.