Questions tagged [sdwebimage]

SDWebImage is a simple image library for iOS which provides caching and an easy way to load remote images asynchronously into UIImageViews.

This library provides a category for UIImageVIew with support for remote images coming from the web.

It provides:

  • An UIImageView category adding web image and cache management to the Cocoa Touch framework
  • An asynchronous image downloader
  • An asynchronous memory + disk image caching with automatic cache expiration handling
  • A guarantee that the same URL won't be downloaded several times
  • A guarantee that bogus URLs won't be retried again and again
  • Performance

More info can be found on the github page.

885 questions
3
votes
1 answer

Different cache types SDWebImage

I'm using SDWebImage for a while caching all my images but now i want to have more than one cache to to group various types of images. For example three kind of caches with several images each, so in runtime i want to clear one of them or have…
silvaric
  • 1,668
  • 17
  • 27
3
votes
0 answers

SDWebImage does not follow 307 redirects

I'm using SDWebImage to fetch images in my project, but I'm facing just one issue that I haven't been able to solve so far. Basically if an image has a temporary redirect (307 redirect which nowadays is a standard code for redirect) the library…
albertosh
  • 2,416
  • 7
  • 25
  • 32
3
votes
1 answer

How would I design an asynchronous image downloader for my UITableView that prioritizes downloads depending on location in table view?

In my app, I receive a list of image URLs to use as thumbnails in my table view. The tableview has a small amount of items, approximately 30, so I want to load all the thumbnails immediately (instead of when they become visible, as they undoubtedly…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
3
votes
0 answers

SDImageCache Memory Usage

I am using SDWebImageDownloader in my iOS 7 app to download images from the web. I am not using SDWebImageManager, only the downloader, which is not supposed to cache anything on my behalf. As more and more images are downloaded, my apps memory…
josephap
  • 2,075
  • 17
  • 24
3
votes
2 answers

Loading an image using SDWebImage with no file extension

So I'm using SDWebImage to load images asynchronously in my iOS UITableView. To do this I call: [cell.itemImageView setImageWithURL:imageUrl placeholderImage:[UIImage imageName:@"placeholder.png"]]; Where imageUrl might be: imageUrl = [NSURL…
ingh.am
  • 25,981
  • 43
  • 130
  • 177
3
votes
1 answer

Scrolling is not proper When i used SDWebImage

I have this very serious problem of scrolling the table. Initially i used GCD for loading the image in Background and setting on table cell. but the table was not scrolling smoothly. So i used SDWebImage for that but then the same thing is…
user2478518
3
votes
2 answers

How to download web images in Cache before displaying using SDWebimage?

i have to download large number of web images in my app. now i am trying to download images in my initial class using Grand Central Dispatch. code: - (void)viewDidLoad { [super viewDidLoad]; dispatch_queue_t queue =…
jamil
  • 2,419
  • 3
  • 37
  • 64
3
votes
1 answer

SDWebImage With Custom UITableView Cell Image

I am trying to use SDWebImage library with a custom UITableViewCell. Below is the method that is downloading the images from the web service: - (void) downloadThumbnails:(NSURL *)finalUrl { SDWebImageManager *manager = [SDWebImageManager…
AJ112
  • 5,291
  • 7
  • 45
  • 60
3
votes
1 answer

SDWebimage scrolling

I use SDWebimage to load and cache pictures, and now I am looking for a way to swipe/scroll through the images. I've tried different approaches but I can't seem to get it working, can someone help me with this?
user2061153
3
votes
2 answers

SDWebImage: running a method BEFORE image is refreshed and placed

So before anything else, I found this: SDWebImage process images before caching which kind of helps but I really want to use SDWebImage, is there a way to process the images via a method outside of the class before completion? To my understanding,…
Jayson
  • 528
  • 4
  • 13
3
votes
0 answers

cannot use sdwebimage category (mach linker errors)

I want to use SDWebImage for my imageviews so that i can get images from the web. I downloaded the zip from github, unzipped it. I dragged files from SDWebImage folder into xcode, checked copy items, and also checked my target. Then, I did an import…
Sonu Jha
  • 719
  • 3
  • 13
  • 23
3
votes
1 answer

Loading local images from documents directory to tableview using SDWebImage

I am using a tableview which loads images from the documents directory, creates a thumbnail and shows it in the tableview. However, I have a problem: it becomes slow and crashes as the pictures are large, taken using the camera. I have explored…
Paul A.
  • 577
  • 2
  • 11
  • 24
3
votes
2 answers

How to get filesystem path to image cached with SDWebImage (iOS)

I'm using SDWebImage for image caching at UICollectionView in my iOS app. Everything is fine, however, when user scrolls fast over the collection view there is always little pause before placeholder is replaced with the cached image. I believe this…
lukaszb
  • 694
  • 1
  • 6
  • 15
3
votes
1 answer

SDWebImage clear cache for image while scrolling?

Can anyone please enlighten me how to clear cache while scrolling through images? i m using SDwebImage package.It is working till 110 photos after that it giving memory receive warning and getting crash i have tried following method also but no…
2
votes
3 answers

Is there a framework for image caching on iOs?

I'm already using AFNetworking for async image download. I was wondering if there's a way for storing on disk or Core Data, should I investigate SDWebImage for that? Or you would suggest to have a custom solution. Basically I would like to have a…
Emanuele Fumagalli
  • 1,476
  • 2
  • 19
  • 31