For an iPhone only, iOS 7+ app, can we include only @3x images?

后端 未结 3 978
不思量自难忘°
不思量自难忘° 2021-02-05 08:29

In an effort to reduce bundle size, is it possible (and a good idea) to only add @3x images?

To clarify, I\'m not referring to the app icon, launch image, etc. But imag

3条回答
  •  余生分开走
    2021-02-05 09:01

    One thing to note is that @3x is already downscaled by the device. 3 is UIDevice scale whereas the screen is actually at, in some sense, nativeScale. So, if the argument holds, it should do a proper job for other densities as well from @3x.

    Of course, if the image has quite a few sharp corners with just a single pixel sitting at the corners, one may want to precisely position it instead of letting the OS pick it via applying whatever continuous filter it is going to apply to downscale.

提交回复
热议问题