AsyncImageView icon indicating copy to clipboard operation
AsyncImageView copied to clipboard

UIImages are now created with a default retina scale

Open mikelovesrobots opened this issue 12 years ago • 4 comments
trafficstars

As of iOS7, all devices sold are retina, so it makes sense to transition to loading all the images with the proper scale. This makes it possible when using UIImageViews to use the more interesting view modes like top-left, bottom-right, etc.

If you merge this directly, you'll break the code of people who depended on the old behavior. You might want to make it configurable with the default being 2.0.

[edit] It's not true about all ios7 devices being retina. See comment by bastionhoyer below.

mikelovesrobots avatar Oct 02 '13 22:10 mikelovesrobots

ipad mini is not yet retina and might get delayed until 2014

bastianh avatar Oct 02 '13 22:10 bastianh

Interesting. Anyway, we found it confusing to work with UIImages from the web at scale 1 in our app. Maybe it should be configurable.

mikelovesrobots avatar Oct 02 '13 23:10 mikelovesrobots

So how can I use this library to load a retina image from a url? The image scale should definitely be configurable now!

fraserscottmorrison avatar Feb 03 '15 01:02 fraserscottmorrison

Wouldn't it be more interesting to add the ability to look for @2x and @3x images if the device is detected as not having the legacy scale ? This way nothing is broken for people relying to the old behavior.

fantattitude avatar May 06 '15 13:05 fantattitude