is it possible to download image at low resolution from url?

i am trying to load images from URL to UIIMageView. it works fine, but i want to download the images at a lower resolution/size because its taking too long to load.

i have tried to use AFNetworking+UIImage class but the performance are the same.

    [iv setImageWithURL:[NSURL URLWithString:@"http://cegamers.com/wp-content/uploads/2011/06/automaton.jpg"] placeholderImage:[UIImage imageNamed:@"placeholder-avatar"]];

anyone know how a library or some kind of way for this?


  • Yes. If you simply add 's' to the end of the img_hash in any direct image link on imgur, then you get the small square version of it.

    https://i.stack.imgur.com/sGMvI.jpg <--- Direct link
    http://i.imgur.com/DkDdKs.jpg <--- Small square version. Notice the extra s