Asynchronous image downloader with cache support as a UIImageView category
MIT License
Bot releases are hidden (Show)
Published by dreampiggy over 5 years ago
Published by dreampiggy over 5 years ago
Published by dreampiggy over 5 years ago
Behavior:
Swift Only:
sd_imageDataAsFormat:
#2517You can always check 5.0 migration guide for the latest information for these changes.
Published by dreampiggy over 5 years ago
shouldDecompressImages
config and always do pre-draw for static WebP images #2592DEFINES_MODULE
#2549Published by dreampiggy almost 6 years ago
See all tickets marked for the 4.4.3 release
FLAnimatedImage
, because of the FLAnimatedImage
initializer method blocks the main queue #2441testFLAnimatedImageViewSetImageWithURL
because of remote resource is not available #2450HTTP User-Agent
for specific system #2409SDImageFormatHEIF
represent mif1
&& msf1
brands #2423addProgressCallback
, add createDownloaderOperationWithUrl
#2336FLAnimatedImageView
firstly show one EXIF rotation JPEG UIImage
, later animated GIF FLAnimatedImage
will also be rotated #2406SDWebImageDownloaderOperation
with NSOperation<SDWebImageDownloaderOperationInterface>
to make generic #2397optimalFrameCacheSize
&& predrawingEnabled
#2543README.md
#2511Published by bpoplauschi about 6 years ago
See all tickets marked for the 5.0.0 release
SDWebImageDownloader
#2415 #2437 1d8454dSDImageFormatHEIF
represent mif1
&& msf1
brands #2423 (imported from 4.4.3)HTTP User-Agent
for specific system #2409 (imported from 4.4.3)valueForKey
with objectForKey
when access NSDictionary #2399sd_setAnimationImagesWithURLs
API, because its cause ambiguity, behave not consistently and have rare use case #2459SDAnimatedImage
protocol with initWithData:scale:options:
#2453SDSetImageBlock
(added cacheType
and imageURL
) #2449NS_TYPED_ENUM
on SDImageFormat
cause the existing Swift API (sd_UTTypeFromImageFormat
) naming changed #2413SDAnimatedImageView
#2435SDWebImageContextCacheKeyFilter
wrongly be used as cache serializer and cause crash #2451Published by bpoplauschi about 6 years ago
See all tickets marked for the 5.0.0 release
SDImageCoderWebImageContext
coder option, which allow custom coder plugin, to receive the context option from top-level API #2405sd_imageLoadOperationForKey
#2389__bridge_transfer
with __bridge
when convert from CFStringRef
to NSString
#2392sd_UTTypeFromSDImageFormat
to sd_UTTypeFromImageFormat
#2395SDImageFormat
to use NS_TYPED_EXTENSIBLE_ENUM
instead of fixed enum, to allow custom coder plugins to extend it #2400Published by bpoplauschi over 6 years ago
See all tickets marked for the 4.4.2 release
SDImageCacheConfig.diskCacheExpireType
#2357SDImageCache
via SDImageCacheConfig.shouldUseWeakMemoryCache
#2379diskImageDataForKey:
sync API for SDImageCache
to directly get the image data from disk #2391FLAnimatedImage
, this allow user to disable memory cache for associated FLAnimatedImage
instance #2378FLAnimatedImageView+WebCache
delayed draw due to #2047 which is now reverted #2393SDWebImageManager.runningOperations
type changed from Array
to Set
#2382__bridge_transfer
with __bridge
when convert from CFStringRef
to NSString
#2394Published by bpoplauschi over 6 years ago
See all tickets marked for the 5.0.0 release
See the 5.0 Migration Guide for a list of comprehensive changes and the way to update your code
Introduce SDAnimatedImageView
, SDAnimatedImage
and refactor the way we handle animated images #2140
Added APNG support via dedicated coder SDImageAPNGCoder
#2149
Refactored SDWebImageDownloader
configs, separated them into a dedicated SDWebImageDownloaderConfig
object #2263
Refactored the way we work with the scale factor #2266
Created request and response modifier #2261
Refactor Cache Path API #2276
Refactor custom cache serializer & headers filter for request level #2280
Refactor cache - Support custom memory cache & disk cache #2282
Refactor cache - Support custom web cache #2278
Refactor - custom image loader - Supports loader protocol #2256
Use SDWebImageAvoidDecodeImage
to allow user to control force decode feature for individual image request #2283
SDImageCache
supports disk cache writing options. See SDImageCacheConfig diskCacheWritingOptions
#2148
SDImageCache
now uses NSData writeToFile:options:error
instead of NSFileManager createFileAtPath:contents:attributes
#2148
Moved SDImageCache maxMemoryCost
and SDImageCache maxMemoryCountLimit
to SDImageCacheConfig
#2151
Added SDImageCache diskImageDataExistsWithKey:
synchronous method #2151
Moved UIImage sd_imageLoopCount
and UIImage isGIF
(and renamed to sd_isAnimated
) to UIImage+Metadata
category, removed the outdated methods #2152
Move context and other type definitions to a separate header (SDWebImageDefine
) to allow to be included without dependency #2188
Pass context
arg from the top level APIs to the bottom level APIs to allow specify logic in the future #2189 d6a3e2c c24c3d3
Refactor the image indicator by creating SDWebImageIndicator
and SDWebImageProgressIndicator
protocols and two concrete classes that implement activity and progress indicators for both UIKit and AppKit #2185 46b62cf
Refactor the implementation of SDWebImagePrefetcher
so it behaves more like a "shared instance" object, similar to other platform classes. Each instance will manage its own list of urls. #2191 1efc247 92f3d2c bc164d6
Refactored and enhanced the way we allow image transformations. Switched from a single delegate method to composition of SDImageTransformer
#2219
API style refactoring - #2250
+(instanceType)sharedInstance
in singleton to make it more easy to use in Swift. The generated interface should be simple open class var shared { get }
AnyObject!
implicitly unwrapped optionals (Except that null_resettable
)CF_RETURNS_RETAINED
forCF_RETURNS_NOT_RETAINED
for Create Rule to avoid any Unmanaged
CF valueNS_STRING_ENUM
to make it easy to use in Swift with dot syntaxNS_TYPED_ENUM
to make it easy to use in Swift with dot syntaxRemove the extra calculation of image orientation for ImageIO coder & Fix macOS image orientation #2271
Added SDWebImageError
(defined as NS_ERROR_ENUM
) to group all our errors together #2290
Added tests for macOS
Add the SDWebImageContextStoreCacheType
context option to specify target cache type when the image is downloaded by manager and will store to cache #2360
Feature watchOS WKInterfaceImage
with sd_setImageWithURL
#2331
Add options to specify query cache sync/async behavior #2312
SDWebImageManager loadImageWithURL:options:progress:completed:
changed the completed
param requirement from nullable
to nonnull
#2164Published by dreampiggy over 6 years ago
Published by dreampiggy over 6 years ago
sd_setImageWithURL:
) on WKInterfaceImage #2343SDImageCacheScaleDownLargeImages
to allow cache to scale down large images if need #2281 #2273UIViewAnimationOptionAllowUserInteraction
as default options for convenient image transition #2315@synchronized
with dispatch_semaphore_t in SDWebImageManager #2340Published by dreampiggy over 6 years ago
Published by dreampiggy over 6 years ago
See all tickets marked for the 4.3.2 release
Published by dreampiggy over 6 years ago
See all tickets marked for the 4.3.1 release
Published by dreampiggy over 6 years ago
See all tickets marked for the 4.3.0 release
sd_imageProgress
property represent the image loading progress, this allow user add KVO on it for complicated logic #2172sd_imageTransition
property support custom image transition after image load finished #2182setAnimationImagesWithURLs
weak reference may dealloc before the animated images was set #2178See all tickets marked for the 4.2.3 release
Published by bpoplauschi almost 7 years ago
See all tickets marked for the 4.2.2 release
UIProgressView
to show image download progress #2096UIView+WebCache
#2093 #2097 #2092Published by bpoplauschi almost 7 years ago
See all tickets marked for the 4.2.1 release
SDWebImageCoderHelper
; SDWebImageFrame
abstracts animated images frames)Published by bpoplauschi almost 7 years ago
See all tickets marked for the 4.2.0 release
UIImage+GIF
category for animated GIF! Not enabled by default. #2064SDWebImageGIFCoder
on macOS
(use NSImage
API) #2067-[NSImage isGIF]
method to return whether current NSImage
has GIF representation #2071SDImageCache
disk cache #2057UIImage(GIF) sd_animatedGIFWithData
crash #1991 #1837SDWebImageManager.m __destroy_helper_block_
crash #2048 #1941FLAnimatedImage
instance on global queue #2047Published by bpoplauschi about 7 years ago
See all tickets marked for the 4.1.2 release
SDWebImageDownloaderOperation
not call done
when use SDWebImageDownloaderIgnoreCachedResponse
#2049WebP
decoding little enhancement. Do not need create WebP
iterator for static images #2050finished
check from equal
to equal or greater than
to protect accident condition #2051