Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialPascal Hausberger
16,453 PointsImages for Retina Display
Hey Stone Preston Matthew Mascioni Kevin Lozandier Sarah Parmenter ,
When using images.assets folder, it is indicated that one should use an image in two sizes.
If I only upload the 2x image for retina displays, does a non-retina device then automatically render the 2x image as a normal/1x image? I already made sure that the 2x image is an even number, so that it can be divided by 2. Or do I have to manually make both an 1x and a 2x image for each image I use in the app?
Thanks a lot!
Cheers, pascal
2 Answers
Sarah Parmenter
Treehouse Guest TeacherYou have to manually make both 1x and 2x images for each image that you use in the app. This is simple in Sketch, however - makes it easy to do this in two easy exports. Simply export all your assets at @2x then run it again at regular size.
Only the @2x artwork needs to have @2x on the end of it. For example. If you had a file titled "logo". It would render like this: logo.png logo@2x.png
Hope that helps!
Pascal Hausberger
16,453 PointsOk, i understand!
Thanks a lot!
Great mobile app design tutorial btw! ;)