IPhone / iPad: image resolution Question

So, I am making a universal application (iphone3gs / iphone4 / ipad /) ... But I have a question about images.

Let's say we have an image of a smiling face ... You will have 3 separate images (each of which is saved with a different width / height) for all devices, namely:
smiley-iPad.png (for ipad)
smiley.png (for iphone 3gs)
smiley@2x.png (for iphone 4)

or you will have only one image: smiley.png (which is saved in high resolution, i.e. large width / height, and then scaled using the interface builder).

it seems that the latter will save a lot of work, what are your thoughts on this, which is better?

+4
source share
2 answers

The latter will save work, but will be slower on 3GS, since it will have to scale the image before displaying it. Depending on your application, this may or may not be a problem. There may be other cases when you want a completely different image for the ipad, as with a large screen space there is more space for details.

+1
source

This is not just an image scaling issue.

If you use a lot of images, the main problem will be the memory used. For iPhone 4, using a 640 * 960 pixel image to display the background will not be a problem. But using the same image for iPhone 1 or iPhone 3G is too much. Especially when you have multiple images ^^

So, I advise the first solution (the one that I use for my applications ;-))

0
source

All Articles