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
6
votes
4 answers

SDWebImage Cancel download

I am using SDWebimage to load images on my tablkeview I am following this tutorial Now I stuck on a problem,If I scroll down and hit back before images get loaded the app got crashes.How can I solve this ? How to cancel the SDWebImage download. I…
Vidya Vasudev
  • 81
  • 2
  • 5
6
votes
2 answers

How to include SDWebImage framework

I am working on an iPhone app. In this app I have used many images and I need to store those images in cache memory. For this I have found SDWebImage is the right framework but I can not include this framework in my iPhone project. Can anyone please…
user1417638
  • 221
  • 5
  • 13
5
votes
3 answers

Clipped not actually clips the Image in SwiftUI

I am trying to clip the image and as we see the UI it looks fine but actually it doesn't clip the image which causes other UI elements to unresponsive. Here the code I am using. struct ImageContentView: View { var urls:[String] = [ …
Malav Soni
  • 2,739
  • 1
  • 23
  • 52
5
votes
4 answers

Download image using SDWebImage, error -999 (or) SDWebImageErrorDomain Code=0 "Downloaded image has 0 pixels

I am unable to download the image in Objective c Using SDWebImage 4.4.5 version., I tried the following , nothing worked. Try 1: [self.thumbnailImageView sd_setImageWithURL:[NSURL URLWithString:thumbnailURLString] completed:^(UIImage * _Nullable…
Babul
  • 1,268
  • 2
  • 15
  • 42
5
votes
2 answers

SDWebImage without ssl certificate

I try to set image via SDWebImage. But SDWebImage cancel operation. I've tried to get this image in Safari with url and Safari asked me about certificate. When I cancel dialog window I get this image. Question is: Can I disable SDWebImage…
5
votes
2 answers

Understanding the mechanism used by SDWebImage when used in a UITableView

This question is for my understanding as my code is working fine. I have looked inside SDWebImage, but it's fairly large and I can't pinpoint how the mechanism I'm questioning works. OK, let's say I have a tableview full of UIImageViews (one inside…
Woodstock
  • 22,184
  • 15
  • 80
  • 118
5
votes
2 answers

How to stop animating GIF in SDWebImage?

I'm using SDWebImage to fetch images from web and display them. But some are GIFs, how to stop the GIF?
JsW
  • 1,682
  • 3
  • 22
  • 34
5
votes
4 answers

Xcode : module name "" is not a valid identifier while running XC unit test

Trying to run XCTest with my CocoaPods set up using SDWebImage, and I can only see this error as below. Any suggestions? :0: error: module name "" is not a valid identifier Command…
Max
  • 5,380
  • 6
  • 42
  • 66
5
votes
4 answers

SDWebImage changing images while tableview scrolling

There is a TableView with Cells and there is ImageView in each of them. I use SDWebImage to load images and it works fine, but when I scroll fast - I see that images in cells are changing few times before it will be right image. Why is it happening?…
moonvader
  • 19,761
  • 18
  • 67
  • 116
5
votes
2 answers

SDWebImage completion Block

Im using SDWebImage code, to download an image from internet. GitHub SDWebImage Im Doing this in Xcode 8 and Swift 3. I want to resize it once it is downloaded, but I can't have image size until I Download the image. (To make it resize…
Mago Nicolas Palacios
  • 2,501
  • 1
  • 15
  • 27
5
votes
2 answers

Adding FirebaseUI/Storage pod to iOS App throws framework not found SDWebImage for architecture x86_64

I am trying to add FirebaseUI/Storage pod to iOS App which is throwing the following linker error: framework not found SDWebImage for architecture x86_64 I have tried adding SDWebImage independently and it works but as soon as I add…
Vibhor Goyal
  • 2,405
  • 2
  • 22
  • 35
5
votes
0 answers

iOS-SDWebImage ) Can I cancel sd_setImageWithURL in progress?

I need some help. I use sd_setImageWithURL like tihs self.downloadButton.addTarget(self, action: #selector(self.stopDownloading), forControlEvents: .TouchUpInside) self.imageView.sd_setImageWithURL(NSURL(string:myURL!)!, placeholderImage:…
BRODY BYUN
  • 65
  • 6
5
votes
3 answers

Get SDWebImage Cache Image

I would like to ask on how to get the downloaded image after the SDWebImageManager downloaded it. I have only the code to download it via URL, here's what I got: let manager: SDWebImageManager = SDWebImageManager.sharedManager() …
Sydney Loteria
  • 10,171
  • 19
  • 59
  • 73
5
votes
4 answers

resize sdwebImage swift

Hello I am displaying images on my app using sdwebImage. I have a code here to resize the image func resizeImage(image: UIImage, newWidth: CGFloat) -> UIImage { let scale = newWidth / image.size.width let newHeight = image.size.height *…
hellosheikh
  • 2,929
  • 8
  • 49
  • 115
5
votes
5 answers

No such module 'SDWebImage'

I installed SDWebImage using CocoaPods. My podfile was as it is written in the https://github.com/rs/SDWebImage platform :ios, '8.0' use_frameworks! pod 'SDWebImage', '~>3.7' when I import SDWebImage it says No such module 'SDWebImage' my Xcode…
tmac99
  • 153
  • 2
  • 10