Commit Graph

1600 Commits

Author SHA1 Message Date
Bogdan Poplauschi d7c665068c
Merge pull request #2394 from zhongwuzw/fix-cfstringref-ownership-for-master
Replace __bridge_transfer with __bridge when convert from CFStringRef to NSString
2018-07-18 18:35:45 +03:00
Bogdan Poplauschi dbbfbd715a
Merge pull request #2386 from zhongwuzw/fix-nullable
Fix nullable key when cancel image load operation
2018-07-18 18:28:00 +03:00
zhongwuzw 61800a8e31 Replace __bridge_transfer with __bridge when convert from CFStringRef to NSString 2018-07-18 23:14:40 +08:00
zhongwuzw 593feb664c Revert operation remove logic 2018-07-18 23:07:25 +08:00
zhongwuzw 7f1440bc96 Merge commit '98a2d9a3b4dd7ec47072e726a5d848b7a3bcc2f1' into fix-nullable 2018-07-18 23:03:13 +08:00
Bogdan Poplauschi 98a2d9a3b4
Merge pull request #2393 from dreampiggy/bugfix_FLAnimatedImage_display_issue
Fix that FLAnimatedImageView+WebCache display behavior for GIF images and other images format
2018-07-18 16:26:38 +03:00
DreamPiggy 3863052094 Fix that FLAnimatedImageView+WebCache display behavior for GIF images and other images format
Fix FLAnimatedImageView will dispatch the completion block into next runloop even for non-GIF image
Fix FLAnimatedImageView may not show animation even when the disk image data is GIF image
2018-07-18 17:42:16 +08:00
Bogdan Poplauschi f0f4b7d190
Merge pull request #2391 from dreampiggy/feature_disk_cache_data
Add one sync API for SDImageCache to directly get the image data from disk instead of image instance
2018-07-18 11:16:07 +03:00
Bogdan Poplauschi 68c58992d7
Merge pull request #2390 from dreampiggy/feature_image_format
Keep the information about image's original compressed format, for API which only contains image but not image data to process extra logic
2018-07-18 11:15:04 +03:00
DreamPiggy 5e52585944 Add one sync API for SDImageCache to directly get the image data from disk instead of image instance 2018-07-18 13:06:21 +08:00
DreamPiggy bb41dbc046 Keep the information about image's original compressed format, for API which only contains image but not image data to process extra logic 2018-07-18 12:57:36 +08:00
zhongwuzw 9ec7aa4219 Fix nullable key when cancel image load operation 2018-07-13 22:43:00 +08:00
Wu Zhong 39a28791fd
Merge pull request #2382 from zhongwuzw/replace-runningOperations-to-set
Replace runningOperations of SDWebImageManager from Array to Set
2018-07-13 10:36:41 +08:00
zhongwuzw d908a1cc35 Replace runningOperations of SDWebImageManager from Array to Set 2018-07-12 22:05:09 +08:00
DreamPiggy 53ef5e5394
Merge pull request #2378 from dreampiggy/enhancement_FLAnimatedImage_cache
Add cache control for FLAnimatedImage, this allow user to disable memory cache for associated FLAnimatedImage instance
2018-07-12 19:21:19 +08:00
DreamPiggy 98c28a4419 Update the comments and fix typo 2018-07-12 01:49:32 +08:00
DreamPiggy 233caefec8 Add cache control for FLAniamtedImage, this allow user to disable memory cache for associated FLAnimatedImage instance 2018-07-12 01:40:56 +08:00
Bogdan Poplauschi 2f665fd71f
Added Wu Zhong to the list of collaborators 2018-07-11 18:25:33 +03:00
Bogdan Poplauschi f28796de62
Merge pull request #2379 from dreampiggy/feature_weak_cache_option
Add option to enable or disable weak memory cache for SDImageCache
2018-07-11 13:14:52 +03:00
DreamPiggy bfa940352f Add option to enable or disable weak memory cache for SDImageCache 2018-07-07 12:50:42 +08:00
DreamPiggy e98a9415c6
Merge pull request #2357 from paulosaure/master
Enable to change clear cache option
2018-06-23 15:16:21 +08:00
Paul Lavoine 268d6d607a Refactor cacheClearBy property name 2018-06-23 08:58:06 +02:00
Paul Lavoine 5408da630c Enable to change clear cache option 2018-06-18 15:56:17 +02:00
DreamPiggy b05959dbcb Bumped version to 4.4.1
update CHANGELOG
2018-06-07 23:14:41 +08:00
DreamPiggy 577c0770ba
Merge pull request #2348 from dreampiggy/fix_webp_decoding_iOS_12
Fix that WebP (including Animated WebP) decoding issue on iOS 12.
2018-06-07 12:14:52 +08:00
DreamPiggy 0437759c80 Fix that WebP (including Animated WebP) decoding issue on iOS 12. Using the correct bitmapInfo to avoid `CGImageCreate` failed when the WebP image contains no alpha channel 2018-06-07 11:08:52 +08:00
DreamPiggy e13f503125
Merge pull request #2346 from dreampiggy/fix_operation_race_condition
Fix that the downloader operation may not call the completion block in race condition
2018-06-06 14:25:59 +08:00
DreamPiggy 48acb8e423 Fix that the downloader operation may not call the completion block in race condition, which the operation we get is finished but not been removed from the operation array. 2018-06-04 20:20:28 +08:00
DreamPiggy 5062a7653e Bumped version to 4.4.0
update CHANGELOG
2018-05-31 17:39:02 +08:00
DreamPiggy c6bb3971ab
Merge pull request #2343 from dreampiggy/feature_watchkit_setImage_4.x
Add the support for watchOS to use View Category method (sd_setImageWithURL:) on WKInterfaceImage
2018-05-31 17:01:15 +08:00
DreamPiggy 799ef18c06 Add the support for watchOS to use View Category method (sd_setImageWithURL:) on WKInterfaceImage 2018-05-31 11:32:52 +08:00
DreamPiggy dfe010273a
Merge pull request #2323 from dreampiggy/feature_FLAnimatedImageVIewOptimizationLevel
Add optimalFrameCacheSize && predrawingEnabled options for FLAnimatedImage
2018-05-30 21:58:55 +08:00
DreamPiggy 6661575432
Merge pull request #2340 from hulizhen/optimization/replace-synchronized
Replace @synchronized with dispatch_semaphore_t in SDWebImageManager
2018-05-30 15:28:20 +08:00
Lizhen Hu 3ee1b60678 Revert replacement of @synchronized in SDWebImageCombinedOperation 2018-05-30 14:57:41 +08:00
Lizhen Hu 0b8207b1d2 Refactor in SDWebImageManager 2018-05-30 13:58:47 +08:00
Lizhen Hu 1aced8aa62 Remove unused header file 2018-05-28 23:26:09 +08:00
Lizhen Hu 09020fac87 Replace @synchronized lock with dispatch_semaphore lock for SDWebImageCombinedOperation 2018-05-28 23:14:12 +08:00
Lizhen Hu 7dc38751e9 Use non-recursive lock for runningOperations in SDWebImageManager 2018-05-28 23:10:40 +08:00
Lizhen Hu a6e3907f26 Replace @synchronized with pthread_mutex_t & dispatch_semaphore_t in SDWebImageManager 2018-05-28 13:35:19 +08:00
DreamPiggy 76f7eacdd0
Merge pull request #2329 from zhongwuzw/fix-async
Minor optimize for dispatch_queue_async_safe
2018-05-25 13:20:09 +08:00
zhongwuzw 7515f06b44 Minor optimize for dispatch_queue_async_safe 2018-05-22 20:34:41 +08:00
DreamPiggy e9527b393a Add optimalFrameCacheSize && predrawingEnabled options for FLAnimatedImage. It makes users to set optimal frame cache size of FLAnimatedImage after image load. 2018-05-16 15:35:55 +08:00
Bogdan Poplauschi 55d65569dc
Merge pull request #2318 from dreampiggy/bugfix_WebP_encode_color_mode
Fix WebP Encoding only works for RGBA8888 CGImage but not other color mode
2018-05-11 13:14:43 +03:00
DreamPiggy 18ee2352b0 Fix WebP Encoding only works for RGBA8888 CGImage but not other color mode.
Detect the current CGImage color mode, covert the all other case to RGB888/RGBA8888 using vImage
2018-05-10 14:22:51 +08:00
Bogdan Poplauschi 12fe445498
Merge pull request #2315 from dreampiggy/improvement_image_transition_user_interaction
Add `UIViewAnimationOptionAllowUserInteraction` as default options for convenient image transition
2018-05-09 12:50:53 +03:00
DreamPiggy e9c824c95f
Merge pull request #2314 from dreampiggy/fix_duplicated_force_decode_imageIO
Remove the duplicated process to force decode (draw on bitmap context) in Image/IO's progressive decoding.
2018-05-07 19:41:40 +08:00
DreamPiggy 7ae1c149ad
Merge pull request #2313 from dreampiggy/performance_image_orientation
Remove the extra calculation of image orientation for ImageIO coder
2018-05-07 18:17:06 +08:00
DreamPiggy ec37a48ba3 Add `UIViewAnimationOptionAllowUserInteraction` as default options for convenient image transition 2018-05-04 16:48:52 +08:00
DreamPiggy ab854e3575 Remove the duplicated process to force decode (draw on bitmap context) in Image/IO's progressive decoding. 2018-05-04 16:38:17 +08:00
DreamPiggy c6fa6e31fb Remove the extra calculation of image orientation for ImageIO coder 2018-05-04 16:30:39 +08:00