Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-02-2012, 02:53 PM   #1 (permalink)
Registered Member
 
2WeeksToGo's Avatar
 
Join Date: Nov 2011
Posts: 227
2WeeksToGo is on a distinguished road
Default Do I need 2 diffrent image sizes or is 1 size good for all devices?

Hi, Im about to submit my app game but a quick question.

All my art and stuff is simply called "background1.png" but it is 640 by 960 so retina display. All the images are simply called that .png and NOT @2.png. Is that ok? I tested it on iphone 3gs and all shows up fine very nice. and I test it on iphone 4 and my images are even better. Do i need to include two seperate image files or is the one I got ok for both devices?
2WeeksToGo is offline   Reply With Quote
Old 02-02-2012, 03:16 PM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by 2WeeksToGo View Post
Hi, Im about to submit my app game but a quick question.

All my art and stuff is simply called "background1.png" but it is 640 by 960 so retina display. All the images are simply called that .png and NOT @2.png. Is that ok? I tested it on iphone 3gs and all shows up fine very nice. and I test it on iphone 4 and my images are even better. Do i need to include two seperate image files or is the one I got ok for both devices?
You need to put images in both resolutions in your app. Making all your images double-sized puts a huge load on the machine. Older devices have less memory and slower processors than the 4/4S, so having to load the large images and scale them down bogs them down.

It's much better to create your art at the highest resolution and scale it down, so you're in good shape.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 02-02-2012, 03:19 PM   #3 (permalink)
Registered Member
 
Join Date: Oct 2011
Age: 25
Posts: 169
mer10 is on a distinguished road
Default

Quote:
Originally Posted by 2WeeksToGo View Post
Hi, Im about to submit my app game but a quick question.

All my art and stuff is simply called "background1.png" but it is 640 by 960 so retina display. All the images are simply called that .png and NOT @2.png. Is that ok? I tested it on iphone 3gs and all shows up fine very nice. and I test it on iphone 4 and my images are even better. Do i need to include two seperate image files or is the one I got ok for both devices?
This is just a background, not the splash screen right? If it's a generic background image, then for all intensive purposes yes.
mer10 is offline   Reply With Quote
Old 02-02-2012, 03:31 PM   #4 (permalink)
Registered Member
 
2WeeksToGo's Avatar
 
Join Date: Nov 2011
Posts: 227
2WeeksToGo is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
You need to put images in both resolutions in your app. Making all your images double-sized puts a huge load on the machine. Older devices have less memory and slower processors than the 4/4S, so having to load the large images and scale them down bogs them down.

It's much better to create your art at the highest resolution and scale it down, so you're in good shape.
Ok Duncan thank you, but I dont connect my images via code, i do it in interface builder.. SO lets say I do scale my images down to 320-480 and I name it background.png but keep the original i got at 640-960 background@2x.png. will the iphone automatically detect which one it needs?

And I guess this puts another... 30 minutes to my work right now scaling down the images.

Another question: Some of my images are small already, if i make them smaller they will actually not be the correct size on the 3gs and they will ve stretched, so I take it I leave those the way they are? OR I double those and name them @2.png?

ALSO the splash screen is 640 by 960 so I take it i need to scale that down too right?
2WeeksToGo is offline   Reply With Quote
Old 02-02-2012, 03:34 PM   #5 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by mer10 View Post
This is just a background, not the splash screen right? If it's a generic background image, then for all intensive purposes yes.
For everything. Full-screen sized image stress the device more than anything else.

In terms of performance and memory load, the 3GS runs just fine without the high-res images. So does the 4 and 4S, but the @2X images look better.

If you're going to ship only one size, make it the non-retina size. Only put double-sized images in the @2x version.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 02-02-2012, 04:00 PM   #6 (permalink)
Registered Member
 
2WeeksToGo's Avatar
 
Join Date: Nov 2011
Posts: 227
2WeeksToGo is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
For everything. Full-screen sized image stress the device more than anything else.

In terms of performance and memory load, the 3GS runs just fine without the high-res images. So does the 4 and 4S, but the @2X images look better.

If you're going to ship only one size, make it the non-retina size. Only put double-sized images in the @2x version.
Ok thank you Duncan That is just what I needed to know. Im making my images smaller with photoshop elements Its all good thank you all.
2WeeksToGo is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 407
16 members and 391 guests
Atatator, chiataytuday, dre, FrankWeller, imac74, ipodphone, jeroenkeij, kukat, LunarMoon, MAMN84, n00b, QuantumDoja, reficul, Retouchable, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,675
Threads: 94,124
Posts: 402,909
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Retouchable
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:08 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0