Commit Graph

1701 Commits

Author SHA1 Message Date
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
DreamPiggy d6cb5adab8
Merge pull request #2260 from dreampiggy/fix_wrong_nsarray_generics
Fix the wrong declaration of NSArray generics
2018-03-24 14:32:49 +08:00
DreamPiggy bb5bd74b81 Fix the wrong declaration of NSArray generics 2018-03-23 22:09:04 +08:00
DreamPiggy dc5c974b89 Bumped version to 4.3.3
update CHANGELOG
2018-03-12 23:06:02 +08:00
DreamPiggy 9ca9fa3d96
Merge pull request #2245 from dreampiggy/feature_cache_serializer
Add cacheKeyFilter to allow user provide modified version of data when storing the disk cache in SDWebImageManager
2018-03-12 22:57:34 +08:00
DreamPiggy 91e4118b6e
Merge pull request #2246 from dreampiggy/feature_failed_url_delegate
Add a delegate method to control the custom logic when blocking the failed url
2018-03-09 16:42:08 +08:00
DreamPiggy f364962004 Add a delegate method to control the custom logic when blocking the failed url 2018-03-08 12:45:12 +08:00
DreamPiggy 51024a34f7 Add cacheKeyFilter to allow user provide modified version of data when storing the disk cache in SDWebImageManager 2018-03-08 12:13:52 +08:00
DreamPiggy 92cb7cd8fc
Merge pull request #2242 from sberrevoets/master
Enable CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
2018-03-08 10:46:38 +08:00
DreamPiggy 2aa7aefa2e
Merge pull request #2244 from wuwm/master
Clarify the block comment in SDWebImageManager
2018-03-08 10:46:08 +08:00
Weiming Wu 09639a8795 Clarify the block comment in SDWebImageManager 2018-03-07 18:09:48 -08:00
Scott Berrevoets 3ceb8308eb Enable CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
This enables the CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warning on all
targets. #2225 fixed a number of these, but a new one crept back in so
this fixes that issue as well.
2018-03-07 14:40:53 -08:00
DreamPiggy 5147ae5c89 Bumped version to 4.3.2
update CHANGELOG
2018-02-28 12:05:42 +08:00
DreamPiggy 48dd190835
Merge pull request #2232 from dreampiggy/improvement_add_operation
Follow Apple's doc, add NSOperation only after all configuration done.
2018-02-28 11:42:42 +08:00
DreamPiggy 6318776427
Merge pull request #2231 from dreampiggy/fix_iOS8_priority_symbol_crash
Fix that iOS 8 NSURLSessionTaskPriorityHigh symbol not defined in Foundation framework and cause crash
2018-02-28 02:18:27 +08:00
DreamPiggy 776ce2b85e Follow Apple's doc, add NSOperation only after all configuration done. 2018-02-28 01:11:20 +08:00
DreamPiggy a2eb8958ab Update the comments 2018-02-28 00:04:56 +08:00
DreamPiggy 49acbdf9a9 Fix that iOS 8 NSURLSessionTaskPriorityHigh symbol not defined in Foundation framework and cause crash 2018-02-27 23:50:41 +08:00
DreamPiggy 71caeb82e4 Bumped version to 4.3.1 2018-02-25 22:53:33 +08:00
DreamPiggy 8ec529521c update CHANGELOG
Update the changes for 4.3.1
2018-02-25 22:50:50 +08:00
DreamPiggy 37e93a1e7c
Merge pull request #2228 from dreampiggy/improvement_weak_cache
Create a subclass of NSCache using a weak cache.
2018-02-25 11:47:01 +08:00
DreamPiggy 216dfebc4a Create a subclass of NSCache using a weak cache. Only remove the cache when memory warning and sync back the alive instance from weak cache into cache. 2018-02-23 23:34:55 +08:00
DreamPiggy 1986669d49
Merge pull request #2199 from dreampiggy/performance_decode_in_operation_queue
Decode the image in the operation level's queue instead of URLSession delegate queue
2018-02-21 16:07:48 +08:00
DreamPiggy efdeca4f99
Merge pull request #2225 from dreampiggy/fix_block_implicit_retain_self
Fix CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warning
2018-02-21 15:51:50 +08:00
DreamPiggy e11ac90387
Merge pull request #2223 from dreampiggy/improvement_macOS_gif_duration
Create a subclass of NSBitmapImageRep to fix the GIF frame duration issue on macOS
2018-02-21 15:45:23 +08:00
DreamPiggy ad02e3eaae Fix CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warning 2018-02-21 15:30:37 +08:00
DreamPiggy 47b77b7448 Disable travis-ci email notification 2018-02-20 21:18:14 +08:00
DreamPiggy 9c3928a9db Fix prefetcher test to first clear the disk cache, and manager test to only fulfill the finished one 2018-02-20 21:18:08 +08:00
DreamPiggy 7a737acd85 Improve the travis-ci to not clean the build for dynamic framework to speed up the demo build 2018-02-20 21:17:57 +08:00
DreamPiggy fc1fd0a74e Create a subclass of NSBitmapImageRep to fix the GIF frame duration issue on macOS 2018-02-18 17:52:13 +08:00
DreamPiggy 3054a38c0e
Merge pull request #2220 from dreampiggy/improvement_FLAnimatedImage_expose
Expose the read write to FLAnimatedImage associate to the UIImage to allow advanced feature like placeholder
2018-02-18 15:41:43 +08:00
DreamPiggy 7eff69685a Use lock instead of barrier queue to keep callbacks block thread-safe 2018-02-18 00:16:49 +08:00
DreamPiggy aeb5194dc4 Decode the image in the operation level's queue instead of URLSession delegate queue. Because URLSession delegate queue is a barrier queue and shared between different operations 2018-02-18 00:07:14 +08:00
DreamPiggy 26e77d0f04 Expose the read write to FLAnimatedImage associate to the UIImage to allow advanced feature like placeholder 2018-02-13 21:22:34 +08:00
DreamPiggy a54d1d7a2f
Fix that SDImageCacheQueryDataWhenInMemory should response cacheType to memory cache when the in-memory cache hit (#2218) 2018-02-12 21:20:49 +08:00
DreamPiggy aa4cde9389 Update the docs
Update `HowToUse` section to indicate the usage for SDWebImageQueryDataWhenInMemory
2018-02-10 11:30:43 +08:00
DreamPiggy 2646b3a1f2
Improvement download operation for priority and some protect (#2208)
* Add a cache check for 304 response when using NSURLCache

* Remove the extra cost to nil the imageData because at this time operation is already been cancelled or done

* Fix download operation may not marked as finished when data task create failed

* A little code reorder

* Adopt the priority options to change URLSessionTask's priority
2018-02-08 11:22:26 +08:00
DreamPiggy bd22ad8725
Merge pull request #2206 from dreampiggy/fix_macOS_deployment_version
Fix the macOS wrong minimum deployment target version to 10.9
2018-02-01 13:50:31 +08:00
DreamPiggy 3ba496c811 Update the readme about macOS minimum deployment target version 2018-02-01 13:20:55 +08:00