Commit Graph

1739 Commits

Author SHA1 Message Date
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
gukemanbu 23388717bc
Merge branch 'master' into xucg 2018-07-09 01:25:32 +00: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
xucg 91a8227ab1 add unit test 2018-05-24 20:27:48 +08:00
xucg 6ab801b780 remove addProgressCallback, add createDownloaderOperationWithUrl 2018-05-24 16:50:50 +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
DreamPiggy 22e532c9e3 Fix function storeImageDataToDisk description 2018-04-24 21:32:26 +08:00
Bogdan Poplauschi bfa9670c2d
Merge pull request #2301 from plokijuhhb/plokijuhhb-patch-2
Fix function storeImageDataToDisk description
2018-04-24 16:05:57 +03:00
plokijuhhb 745dc38986
Fix function storeImageDataToDisk description
New Pull Request Checklist

 I have read and understood the CONTRIBUTING guide

 I have read the Documentation

 I have searched for a similar pull request in the project and found none

 I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

 I have added the required tests to prove the fix/feature I am adding

 I have updated the documentation (if necessary)

 I have run the tests and they pass

 I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: ...

Pull Request Description

####Description
There are some problems in this description

Or using marco like SDWebImageCompat avoid deadlocks

#ifndef dispatch_queue_sync_safe
#define dispatch_queue_sync_safe(queue, block)\
if (strcmp(dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL), dispatch_queue_get_label(queue)) == 0) {\
block();\
} else {\
dispatch_sync(queue, block);\
}
#endif
2018-04-24 00:33:54 +08:00
Bogdan Poplauschi 8154d16bb2
Merge pull request #2274 from dreampiggy/fix_coders_array
Fix the thread-safe issue for coders manager.
2018-04-19 08:34:43 +03:00
Bogdan Poplauschi 96ec9719a0
Merge pull request #2281 from dreampiggy/feature_scale_download_cache_options
Add `SDImageCacheScaleDownLargeImages` to allow cache to scale down large images if need
2018-04-18 09:22:13 +03:00
DreamPiggy 0dfeebefeb Add `SDImageCacheScaleDownLargeImages` to allow cache to scale down large images if need 2018-04-14 22:14:59 +08:00
DreamPiggy dfe4a66424 Fix the thread-safe issue for coders manager. Use lock and immutable object to keep `addCoder`, `removeCoder` thread-safe. 2018-04-12 13:40:10 +08:00
DreamPiggy e549e1abeb
Merge pull request #2272 from dreampiggy/fix_force_decode_alpha
Fix that force decode not works for alpha-channel images.
2018-04-11 16:40:21 +08:00
DreamPiggy 46e5b196f8 Fix the test about alpha images force decode 2018-04-11 16:10:41 +08:00
DreamPiggy 49cecfe34a Fix that force decode not works for alpha-channel images. This should only exclude animated images. All other images should use the display alpha info based on whether contains alpha or not to force decode 2018-04-11 14:15:27 +08:00
DreamPiggy 0f36f97ae8 Fix the documentation issue about cacheSerializer 2018-04-01 21:54:10 +08:00