DreamPiggy
76dd4b4911
Bumped version to 5.11.1
...
update CHANGELOG
2021-04-23 20:33:53 +08:00
DreamPiggy
a4199067ef
Merge pull request #3221 from dreampiggy/bugfix_original_cache_miss_continue_download
...
Fix the bug that when querying original cache miss, the download process will be skipped. This is not designed behavior.
2021-04-23 19:50:30 +08:00
DreamPiggy
896c5f62f7
Fix the bug that when querying original cache miss, the download process will be skipped. This is not designed behavior.
2021-04-23 12:43:27 +08:00
DreamPiggy
e88df1f819
Merge pull request #3219 from dreampiggy/behavior_transformer_store_query_default_disk
...
Change the .originalStoreCaheType and .originalQueryCacheType into .disk, Now we will store the full image data into disk and re-query the full image data by default
2021-04-23 12:43:02 +08:00
DreamPiggy
72daa08a04
Merge pull request #3220 from Huang-Libo/patch-1
...
Fix spelling error in SDWebImageDownloaderOperation
2021-04-23 12:26:32 +08:00
Huang-Libo
f9a8de5684
Fix spelling error in SDWebImageDownloaderOperation
...
tokent -> token
2021-04-23 11:34:34 +08:00
DreamPiggy
a9ef21bd80
Change the .originalStoreCaheType and .originalQueryCacheType into [.disk]. Now we will store the full image data into disk and re-query the full image data by default, which makes it easy for transformer to avoid re-downloading the full size image data.
2021-04-22 17:34:53 +08:00
DreamPiggy
05a459e55b
Merge pull request #3210 from dreampiggy/bugfix_will_terminate_clear_disk_cache
...
Change the willTerminate auto clean cache logic into sync version
2021-04-11 14:45:10 +08:00
DreamPiggy
51176c7b74
Added new disk cache config `shouldRemoveExpiredDataWhenTerminate`
2021-04-11 12:53:54 +08:00
DreamPiggy
8f34f98c61
Change the willTerminate auto clean cache logic into sync version
2021-04-11 11:30:51 +08:00
DreamPiggy
15e16e9e7f
Merge pull request #3205 from dreampiggy/bugfix_session_invalid
...
Ensure the invalid URLSeesion will receive the cancel callback and does not trigger the any exception from framework
2021-04-08 14:44:01 +08:00
DreamPiggy
d452afdb54
Ensure the invalid URLSeesion will receive the cancel callback and does not trigger the any exception from framework
2021-04-07 11:03:56 +08:00
DreamPiggy
3fcf40d12f
Merge pull request #3206 from dreampiggy/revert_imageio_terminate_decode_crash
...
Revert the "Don't encode/decode image when app will terminate"
2021-04-07 11:02:44 +08:00
DreamPiggy
bed1638b42
Revert the "Don't encode/decode image when app will terminate"
2021-04-06 18:21:16 +08:00
DreamPiggy
d1c75d8397
Hotfix for the wrong naming selector during gardening
2021-04-06 11:40:32 +08:00
DreamPiggy
9ffc546b8f
Bumped version to 5.11.0
...
update CHANGELOG
2021-04-01 21:18:11 +08:00
DreamPiggy
7c7f279b36
Code garden for terminate check
2021-04-01 21:10:26 +08:00
DreamPiggy
aa2e264ffb
Merge pull request #3149 from kinarobin/fix-ImageIO-encode/decode-crash
...
Don't encode/decode image when app will terminated
2021-04-01 20:36:59 +08:00
DreamPiggy
3632adced0
Merge pull request #3184 from dreampiggy/feature_original_image_cache
...
Added the new context option `SDWebImageContextOriginalImageCache`, which control the cache instance used for original full size image query/write when using transformer
2021-03-11 20:43:20 +08:00
DreamPiggy
d621667954
Code garden for the original cache key generation
2021-03-09 15:47:54 +08:00
DreamPiggy
140db1ca46
Fix the logic for choosing the cache instance when using transformer. The original cache should be used when query/store the original image; The transformed cache should be used when query/store transformed image.
...
Added test case `test16ThatTransformerUseDifferentCacheForOriginalAndTransformedImage`
2021-03-09 15:42:09 +08:00
DreamPiggy
ae2ca99465
Added the new context option `SDWebImageContextOriginalImageCache`, which control the cache instance used for original full size image query/write when using transformer
2021-03-09 14:51:55 +08:00
DreamPiggy
351e76b2b9
Update the demo to remove the usage of `SDWebImageRefreshCached`
2021-03-09 14:33:00 +08:00
DreamPiggy
ee1115f0bb
Merge pull request #3183 from dreampiggy/break_retain_during_download_decoding
...
Avoid the strong retain during download decoding, this can make the download opearation fast to destroy and reduce memory peak, especially in progressive decoding
2021-03-05 15:10:10 +08:00
DreamPiggy
30618ce37d
Avoid the strong retain during download decoding, this can make the download opearation fast to destroy and reduce memory peak, especially in progressive decoding
2021-03-05 10:51:00 +08:00
DreamPiggy
a521d0da77
Merge pull request #3182 from dreampiggy/performance_progressive_reuse_when_download_finished
...
Increase progressive decoding performance by using the progressive decoder's result instead of re-decoding the full image data
2021-03-05 10:43:32 +08:00
DreamPiggy
d277514cbe
Added `test28ProgressiveDownloadShouldUseSameCoder`
2021-03-04 21:09:22 +08:00
DreamPiggy
319a308995
Change to not mark the `is_incremental` when the progressive decoding `finished` is YES. This can avoid one extra decoding during progressive loading
2021-03-04 20:31:52 +08:00
DreamPiggy
2e7d526a69
Performance enhancement: Allows to use progressive decoding image to callback the completion when finished. Which can reduce the decoding pressure and animation loading delay
2021-03-04 18:46:29 +08:00
DreamPiggy
c82b7552b3
Merge pull request #3177 from Jackylee1992/patch-1
...
Update UIView+WebCache.m
2021-02-19 11:36:09 +08:00
jackylee
013223ca8e
Update UIView+WebCache.m
...
fix typo error from `callCompletedBlockClojure` to `callCompletedBlockClosure`
2021-02-13 23:56:56 +08:00
DreamPiggy
a6b6e44ead
Bumped version to 5.10.4
...
update CHANGELOG
2021-02-02 17:56:01 +08:00
DreamPiggy
f9b80167f4
Merge pull request #3167 from younata/no_data_copy_in_decoding
...
Don't unnecessarily copy image data in the Download Operation
2021-02-02 17:44:28 +08:00
DreamPiggy
8ae8bf83be
Merge pull request #3168 from pixelomer/master
...
Fix link to v3.7.6 in README.md
2021-02-02 15:41:47 +08:00
pixelomer
9a8f2d391f
Fix link to v3.7.6 in README.md
2021-02-02 10:31:43 +03:00
Rachel Brindle
60de72aa5b
Don't unnecessarily copy image data in the Downloader Operation
...
In the DownloaderOperation, we were copying the image data to an NSData, then immediately unassigning the imageData property. Presumably, this was done to prevent the imageData that would be decoded from having additional data added to it while we were decoding it. However, by unassigning the only other reference to it, we already prevented that.
In the SDImageIOCoders, use NSData-initWithData to allow the class cluster to hopefully prevent an unnecessary copy of the data
2021-02-01 18:16:20 -08:00
DreamPiggy
4aaca57fb2
Bumped version to 5.10.3
...
update CHANGELOG
2021-01-24 18:30:56 +08:00
DreamPiggy
27b37912df
Merge pull request #3157 from kinarobin/fix-query-image-to-cache-bug
...
Fixed the store cache type was specified to `SDImageCacheTypeDisk ` that pictures shouldn't cache to memory.
2021-01-21 17:02:19 +08:00
kinarobin
83183150bb
fix query disk image cache to memory bug
2021-01-15 11:48:58 +08:00
kinarobin
784a29578c
not add protect in frameDuration method
2021-01-04 13:36:10 +08:00
kinarobin
e52686b452
change to IOAnimatedCoder
2021-01-02 21:27:05 +08:00
kinarobin
872b59e32a
Merge branch 'fix-ImageIO-encode/decode-crash' of https://github.com/kinarobin/SDWebImage into fix-ImageIO-encode/decode-crash
2021-01-02 18:12:30 +08:00
kinarobin
8ab5eb29cd
add test case
2021-01-02 18:11:57 +08:00
Kinarobin
500ff37b85
Merge branch 'master' into fix-ImageIO-encode/decode-crash
2021-01-02 17:41:30 +08:00
kinarobin
5a0e31b81b
Do not encode/decode when app terminated
2021-01-02 17:35:13 +08:00
DreamPiggy
564d238f88
Bumped version to 5.10.2
...
update CHANGELOG
2020-12-29 11:41:01 +08:00
DreamPiggy
52dd3a11ea
Merge pull request #3146 from dreampiggy/fix_potential_cancel_before_start
...
Fix the case that we setFinished=YES before NSOperation started. This may cause exception from Foundation
2020-12-29 11:38:45 +08:00
DreamPiggy
9ef128f5a1
Update the code comments about status
2020-12-28 19:31:47 +08:00
DreamPiggy
5ce33b12ba
Fix the rare case that we setFinished=YES before NSOperation started. This may cause exception from Foundation
2020-12-28 17:39:17 +08:00
DreamPiggy
f5fd53b2d2
Bumped version to 5.10.1
...
update CHANGELOG
2020-12-25 16:38:55 +08:00