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
5
votes
3 answers

SDWebImage always load the placeholder image not the image from URL

Um using the SDWeb image Here and these my Code : UIImageView *sellerImage = [[UIImageView alloc]init]; [sellerImage setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:productPicture]] …
Atef
  • 2,872
  • 1
  • 36
  • 32
5
votes
4 answers

sdwebimage: is there a limit on how many setimageWithUrl can be queued?

i'm wondering if there is an upper limit on how many setImageWithUrl messages can be submitted at one time ?i'm trying to load 30 photos , 10 of them are downloaded successful but the others entered in the requestFailed when trying to debug the…
Y2theZ
  • 10,162
  • 38
  • 131
  • 200
4
votes
4 answers

sdwebimage: Image in table cell gets stretched after initial load

I am using SDWebImage in my iPhone project and I use it to load images to my table cell. The original downloaded image 150 * 150. My placeholder image is 32*32 (required size) First time, when the image loads, sdwebimage does a great job of…
Ravi
  • 3,719
  • 6
  • 28
  • 40
4
votes
1 answer

Dynamic cell height with SDWebImage

I have a table view and table view cells with an image view on them. I want them to have a fixed width but with a dynamic height (depending on the image coming in from the server). I am using SDWebImage to download and set the image, but the table…
Cesare
  • 9,139
  • 16
  • 78
  • 130
4
votes
2 answers

SDWebImage Prefetching with completion block

My aim is to cover a collectionView with a 'loading screen' which will not be hidden until all the images from a pre-fetched array of images have been loaded into cache by SDWebImage. In my viewDidLoad I have retrieved an array of image URL's which…
MattBlack
  • 3,616
  • 7
  • 32
  • 58
4
votes
4 answers

How to set default image when imageURL is empty using SDWebImage - Swift

I have the following code at cellForRowAt function: let url = URL(string: myurl!) cell.empPhoto.image? = (cell.empPhoto.image?.circle)! cell.empPhoto.image? = (cell.empPhoto.image?.rounded)! cell.empPhoto.sd_setImage(with: url) I'm…
Zizoo
  • 1,694
  • 5
  • 20
  • 42
4
votes
2 answers

Download Images One By One with url using SDWebimage

I need to Download images from Array of Url's, one by one and Display all at a Time. Ex. I have an array of 10 URL's and I need to Download image One By One only, and display at a time. I am Using SDWebImage for Download Images. Please Help…
Prashant
  • 89
  • 1
  • 10
4
votes
2 answers

iOS: Downloading the AWS S3 images & cache it for future use

I have been pulling my hair out from Morning on trying to download the images (webp image) from Amazon S3 bucket and cache it. Whatever the approach I took, I have hit some or the other road block. Different ways I tried to achieve…
iamyogish
  • 2,372
  • 2
  • 23
  • 40
4
votes
2 answers

SDWebImage with local png

I wanted to use sdwebimage to cache image from my local album in my app written in Objective-c. Does anyone knows whether the feature has been implemented in sdwebimage and also whether someone used this in their app?
Calvin
  • 321
  • 2
  • 16
4
votes
5 answers

Set image from SDWebImage to background of button

I use SDWebImage in my project but I was wondering if there is a way to set the image to the background of a button?
user5432778
  • 121
  • 1
  • 14
4
votes
3 answers

Can't use SDWebImage

Xcode: Version 7.2 OS X: 10.10.5 I'm a newbie into iOS and trying to use SDWebImage in Objective-C by following the official installation guide, but I get this error: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_SDWebImageManager",…
4
votes
2 answers

Comprehending SDWebImage downloader

The docs aren't cutting it for me. Can someone give me sample code or an example of instantiating the SDWebImage downloader and using the downloadImageWithURL method?
Grant Park
  • 1,004
  • 1
  • 9
  • 29
4
votes
1 answer

ios SdWebImage image wont display when resize image using Thumbor third party

I am using SdWebImage for displaying images in ImageView If I use image URL directly like http://52.74.11.56/photos/2015/07/1438154558488.jpg , SDWebImage is working perfect. But I need to use Thumbor as thumbnail service. But by using thumbor URL…
Akhzar Nazir
  • 101
  • 1
  • 6
4
votes
1 answer

UICollectionViewCell remain black when used with SDWebImage

I want to fetch images from Instagram API and then show them in my iOS app's UICollectionView using SDWebImage. But after I load the image to cells the cells remain black. Here's the code within cellForItemAtIndexPath:: let photo =…
Blaszard
  • 30,954
  • 51
  • 153
  • 233
4
votes
1 answer

import SDWebImage fails despite CocoaPod installation

I have inserted SDWebImage to the Podfile source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' pod 'NSData+Base64', '~> 1.0' pod 'Facebook-iOS-SDK', '~> 3.23' pod 'CrashlyticsFramework', '~> 2.2' pod 'AFNetworking', '~> 2.5' pod…
Houman
  • 64,245
  • 87
  • 278
  • 460