Why do I need @1x, @2x and @3x iOS images?

CodeMark22

Why do we need these 3 particular image types?

If I have a button on my app with a background image say, 50 pixels x 50 pixels, why do I need 3 versions of this image? What's stopping me from just making one image that's much higher in res, say, 700x700 so when it shrinks down on any iPhone it won't fall under the max res the device would want?

Only thing I can think of is it just takes up more space, but for simple apps / a simple button it seems like it wouldn't cause any issues. I've tried it on a few devices and see no difference between them when I simulate it and do this method. However, as I dive more into apps and stuff I'm sure there is substance behind this technique.

Sulthan

If you don't have the exact size, there are two things that can happen:

Upscaling

@3x or @2x can be upscaled from @1x but usually the visual result is blurry, with thick lines and doesn't look good. Upscaling @3x from @2x can be even worse because subpixels must be used.

Downscaling

In general, the results are much better than with upscaling, however, that doesn't apply for all the images. If you have a 1px border on a @3x image, after downscaling it to @1x the border won't be visible (0.33px). The same applies for any small objects in the image. Downscaling destroys all details.

In general - for an image to look perfect, you want to avoid both downscaling and upscaling. You can always go with only @2x or @3x images and add other scales only if you see visual problems. Using higher resolution won't improve downscaling. High resolutions are used only to avoid upscaling. Downscaling from a high scale (e.g. @100x) to @1x won't create better results than downscaling from @3x.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to load @1x iPad images as @2x images on iPhone?

From Dev

Do I need to save the image at @1x, @2x, @3x?

From Dev

Specifying @3x Retina images in CSS

From Dev

Are @3x images mandatory?

From Dev

Do I need to suffix @3x in UIImage imageNamed?

From Dev

Using less Images for non-retina, retina and retina HD (@1x, @2x, @3x) for Universal Apps

From Dev

Confusion about @3x designation for images

From Dev

Media Queries for @2x, @3x, and @4x images

From Dev

iOS Image Asset sizing. Is 3x actually 3 times the 1x size and is Retina 4 2x required?

From Dev

Get device image scale (e.g. @1x, @2x and @3x)

From Dev

Confusion about @2x @3x Xcode images

From Dev

Adding iOS @1x, @2x, @3x PER device, how to?

From Dev

Add many images to xcodes asset catalog - how to manage naming and 1x,2x,3x for each?

From Dev

iOS: Is removing the 1x images from the iOS App a good idea?

From Dev

How to generate 2x 3x images for atlas?

From Dev

How to load @1x iPad images as @2x images on iPhone?

From Dev

2x 'loop' and 1x 'Do Until' -> cannot run the macro

From Dev

Do I need to save the image at @1x, @2x, @3x?

From Dev

Specifying @3x Retina images in CSS

From Dev

Are @3x images mandatory?

From Dev

2x Images retrieved from .xcassets sometimes give 1x instead

From Dev

iOS pictures 1x 2x 3x convert?

From Dev

"@2x" images are enough for iOS 9 devices?

From Dev

Add many images to xcodes asset catalog - how to manage naming and 1x,2x,3x for each?

From Dev

Why use @1x image in iOS 8 and higher?

From Dev

Why use @1x image in iOS 8 and higher?

From Dev

Image 1x, 2x and 3x issues on different device in iOS

From Dev

Vuejs Migration 1x to 2x Compile Function

From Dev

Adding @2x and @3x pictures without 1x version

Related Related

  1. 1

    How to load @1x iPad images as @2x images on iPhone?

  2. 2

    Do I need to save the image at @1x, @2x, @3x?

  3. 3

    Specifying @3x Retina images in CSS

  4. 4

    Are @3x images mandatory?

  5. 5

    Do I need to suffix @3x in UIImage imageNamed?

  6. 6

    Using less Images for non-retina, retina and retina HD (@1x, @2x, @3x) for Universal Apps

  7. 7

    Confusion about @3x designation for images

  8. 8

    Media Queries for @2x, @3x, and @4x images

  9. 9

    iOS Image Asset sizing. Is 3x actually 3 times the 1x size and is Retina 4 2x required?

  10. 10

    Get device image scale (e.g. @1x, @2x and @3x)

  11. 11

    Confusion about @2x @3x Xcode images

  12. 12

    Adding iOS @1x, @2x, @3x PER device, how to?

  13. 13

    Add many images to xcodes asset catalog - how to manage naming and 1x,2x,3x for each?

  14. 14

    iOS: Is removing the 1x images from the iOS App a good idea?

  15. 15

    How to generate 2x 3x images for atlas?

  16. 16

    How to load @1x iPad images as @2x images on iPhone?

  17. 17

    2x 'loop' and 1x 'Do Until' -> cannot run the macro

  18. 18

    Do I need to save the image at @1x, @2x, @3x?

  19. 19

    Specifying @3x Retina images in CSS

  20. 20

    Are @3x images mandatory?

  21. 21

    2x Images retrieved from .xcassets sometimes give 1x instead

  22. 22

    iOS pictures 1x 2x 3x convert?

  23. 23

    "@2x" images are enough for iOS 9 devices?

  24. 24

    Add many images to xcodes asset catalog - how to manage naming and 1x,2x,3x for each?

  25. 25

    Why use @1x image in iOS 8 and higher?

  26. 26

    Why use @1x image in iOS 8 and higher?

  27. 27

    Image 1x, 2x and 3x issues on different device in iOS

  28. 28

    Vuejs Migration 1x to 2x Compile Function

  29. 29

    Adding @2x and @3x pictures without 1x version

HotTag

Archive