Commit Graph

1334 Commits

Author SHA1 Message Date
Bogdan Poplauschi 322070e2c4 Merge pull request #2051 from dreampiggy/fix_progressive_totalsize_protect
Change finished check from equal to equal or greater than to protect …
2017-10-09 09:16:10 +03:00
Bogdan Poplauschi 25837a32e4 Merge pull request #2050 from dreampiggy/performance_webp
Static WebP decoding a little enhancement. Do not need create WebP it…
2017-10-09 09:10:35 +03:00
DreamPiggy 9fef316dfa Change finished check from equal to equal or greater than to protect accident condition 2017-10-09 12:48:29 +08:00
DreamPiggy 756e59a995 Static WebP decoding a little enhancement. Do not need create WebP iterator for static images. 2017-10-09 11:47:02 +08:00
Bogdan Poplauschi e59d34fdb7 Merge pull request #2049 from dreampiggy/fix_operation_not_call_done
Fix SDWebImageDownloaderOperation not call done when use SDWebImageDownloaderIgnoreCachedResponse
2017-10-08 19:49:33 +03:00
DreamPiggy 4991cb3038 Fix web format check not use immutable image data 2017-10-08 14:15:42 +08:00
DreamPiggy 624aa1e258 Fix SDWebImageDownloaderIgnoreCachedResponse early return without call done method 2017-10-08 14:13:14 +08:00
Bogdan Poplauschi 93a386ed0f Bumped version to 4.1.1 + updated changelog 2017-10-06 21:57:54 +03:00
Bogdan Poplauschi ff0690547d Xcode 9 recommended settings applied 2017-10-06 20:58:44 +03:00
Bogdan Poplauschi 4258154c2d Merge pull request #1983 from dreampiggy/fix_webp_import_issue
Fix SDWebImage v4 can not import libwebp framework's header files.
2017-10-06 20:52:12 +03:00
Bogdan Poplauschi 50e26dc5f7 Merge pull request #2032 from dreampiggy/adopt_refresh_cache_behavior
Adopt the previous version behavior about SDWebImageDownloaderIgnoreC…
2017-10-06 20:43:34 +03:00
DreamPiggy 44e80816f0 Fix SDWebImage v4 can not import libwebp framework's header files.
Fix FLAnimatedImageView mixed local and global import
2017-10-06 12:27:24 +08:00
DreamPiggy 7491510f7e Adopt the previous version behavior about SDWebImageDownloaderIgnoreCachedResponse and SDWebImageRefreshCached without hack code 2017-10-06 12:13:31 +08:00
DreamPiggy 52993c7150 Merge pull request #2040 from dreampiggy/Fix_progressive_download_gray_background
Use CGImageSourceCreateIncremental to perform progressive decoding in…
2017-09-29 23:25:53 -05:00
DreamPiggy 91aef6442c Remove unused Image IO header 2017-09-30 12:03:57 +08:00
DreamPiggy 05fea33dac Merge pull request #2043 from dreampiggy/set_uibutton_placeholder_if_url_is_nil
Set UIButton's placeholer-image even if the url is nil
2017-09-29 12:21:38 -05:00
DreamPiggy 3ab924b016 Set UIButton's placeholer-image even if the url is nil 2017-09-29 23:40:43 +08:00
DreamPiggy 250e1fc87f Merge pull request #1985 from dreampiggy/performance_webp_decoding_optimize
Performance enhancement related to single WebP and animated WebP decoding...
2017-09-29 12:01:18 +08:00
DreamPiggy facdc9925b Use CGImageSourceCreateIncremental to perform progressive decoding instead of decode partial data each time from the beginning to improve performance and remove that gray background 2017-09-29 11:54:26 +08:00
DreamPiggy df099ced20 Performance enhancement related to single WebP image and animated WebP decoding
1. Change the code to not decode WebP images created in SD because it has been decoded
2. Add @autoreleasepool for animated WebP decoding do-while loop to reduce memory peak
2017-09-29 11:04:28 +08:00
DreamPiggy cd1158055a Merge pull request #2011 from dreampiggy/Fix_downloadOperation_imagedata_crash
Fix SDWebImageDownloadOperation imageData multi-thread issue.
2017-09-28 14:05:46 +08:00
DreamPiggy d36a664ef8 Merge pull request #2035 from dreampiggy/fix_macos_demo_deployment_target
Update macOS Demo deployment target to 10.10 to support build on Xcode 9
2017-09-26 14:49:22 +08:00
DreamPiggy a33d8dd7e0 Update macOS Demo deployment target to 10.10 to support build on Xcode 9 2017-09-26 13:56:35 +08:00
DreamPiggy 266b9be6a7 Merge pull request #2031 from dreampiggy/add_refresh_cache_test
Add a test for SDWebImageRefreshCached
2017-09-24 11:02:27 +08:00
DreamPiggy 74566aeb98 Add a test for SDWebImageRefreshCached 2017-09-23 20:34:08 +08:00
DreamPiggy 207677a6a4 Update ManualInstallation.md (#2030)
Fix `Other Linker Flags` images
2017-09-23 19:14:19 +08:00
DreamPiggy f5570320ed Merge pull request #2027 from dreampiggy/fix_test_prototype_warning
Fix clang strict prototype warning in test
2017-09-21 10:44:30 +08:00
DreamPiggy 446c33f14f Merge pull request #1994 from bpoplauschi/fix_request_cache_policy
Fix request cache policy
2017-09-21 10:42:24 +08:00
DreamPiggy 05dfa6c588 Fix clang strict prototype warning in test 2017-09-21 10:15:30 +08:00
DreamPiggy 9021e5b002 Change access the imageData in NSURLSession delegate queue to solve non thread-safe issue. Also, ensure imageData in completion block is immutable to avoid accident modification from the other queue 2017-08-31 21:04:17 +08:00
Bogdan Poplauschi e4ab5ebce2 Merge pull request #2002 from iwill/master
Fix issue #2001, add sd_currentBackgroundImageURL and sd_backgroundIm…
2017-08-18 21:54:35 +03:00
iwill de897ae33a Fix issue #2001 2017-08-18 13:55:34 +08:00
iwill 80dace4a4a Fix issue #2001, add sd_currentBackgroundImageURL and sd_backgroundImageURLForState: for UIButton 2017-08-18 12:02:06 +08:00
Bogdan Poplauschi 94cdb773d7 Merge pull request #1995 from DwayneCoussement/strict-prototype
CLANG_WARN_STRICT_PROTOTYPES: Yes please!
2017-08-15 10:55:40 +03:00
Dwayne Coussement 4d99ca6c86 CLANG_WARN_STRICT_PROTOTYPES: Yes please! 2017-08-14 15:05:46 +02:00
Bogdan Poplauschi 79124e1bab Revert "Update for cache policy calculation: I think that if SDWebImageDownloaderIgnoreCachedResponse is there, we need NSURLRequestReloadIgnoringLocalCacheData so we always reload."
This reverts commit ae75b747b0.
2017-08-11 18:00:59 +03:00
Bogdan Poplauschi ae75b747b0 Update for cache policy calculation: I think that if SDWebImageDownloaderIgnoreCachedResponse is there, we need NSURLRequestReloadIgnoringLocalCacheData so we always reload. 2017-08-11 17:18:31 +03:00
Bogdan Poplauschi 7b79c29a8c The docs say the progressBlock is called on a background queue, so when doing UI, we need to dispatch on the main queue
* @param progressBlock  A block called while image is downloading
* @note the progress block is executed on a background queue
2017-08-11 16:38:32 +03:00
Bogdan Poplauschi ecdd0128ab Fixed #1993 Load image with option `SDWebImageRefreshCached` get error
#1737 introduced an issue that is using NSURLRequestReturnCacheDataDontLoad for our cached images which makes us never download again, which is not ok when using `SDWebImageRefreshCached`.
Fixed by reverting to the original implementation here: `NSURLRequestUseProtocolCachePolicy` vs `NSURLRequestReloadIgnoringLocalCacheData` (when `SDWebImageRefreshCached` is set)
2017-08-11 16:37:29 +03:00
Bogdan Poplauschi 2f892f968f Attempt to fix #1883 by using a weakSelf reference to remove from callbackBlocks (on the barrierQueue) 2017-08-08 13:19:20 +03:00
Bogdan Poplauschi 4cfb2e4b9f Merge pull request #1984 from dreampiggy/fix_unreachable_code
Fix unreachable code build warning on macOS
2017-08-04 19:39:56 +03:00
DreamPiggy 65548e3650 Fix unreachable code warning
Fix unreachable code warning because of the return and break expression in #if SD_MAC
2017-08-04 22:37:38 +08:00
Bogdan Poplauschi 6e70dbc5ad Merge pull request #1980 from skyline75489/feature/sdtestcase
Move common test logic to SDTestCase
2017-08-03 12:51:55 +03:00
skyline75489 d11597a796 Move common test logic to SDTestCase 2017-08-03 07:50:51 +08:00
Bogdan Poplauschi cd84881ff8 Merge pull request #1977 from skyline75489/fix/use-foundation-export
Use FOUNDATION_EXPORT over extern
2017-08-02 15:15:03 +03:00
Bogdan Poplauschi ff3b4ac9fd Merge pull request #1978 from dreampiggy/fix_CFRelease_crash
Fix CFRelease on NULL if CGImageSourceRef create failed
2017-08-02 14:45:27 +03:00
Bogdan Poplauschi a4a5e018c4 Merge pull request #1976 from dreampiggy/fix_CGBitmapContextCreate_memory_leak
Fix CGBitmapContextCreate bitmap memory leak issue
2017-08-02 14:15:04 +03:00
DreamPiggy c7a444f4a7 Fix CFRelease on NULL if CGImageSourceRef create failed
Fix CFRelease on NULL if CGImageSourceRef create failed, this may happen on progressive download with wrong image data
2017-08-02 17:24:13 +08:00
skyline75489 0f387c6694 Use FOUNDATION_EXPORT over extern 2017-08-01 07:14:48 +08:00
DreamPiggy 5e367af7b5 Fix CGBitmapContextCreate bitmap memory leak issue
Pass NULL to CGBitmapContextCreate whenever the data param is not used later to reduce memory leak issue
2017-08-01 01:34:21 +08:00