Commit Graph

2991 Commits

Author SHA1 Message Date
DreamPiggy af96d0b825
Merge pull request #3128 from dreampiggy/feature_replace_semaphore_with_os_unfair_lock_and_spinlock
Replace all current dispatch_semaphore usage into the os_unfair_lock, use OSSpinLock for lower firmware
2020-11-20 15:28:43 +08:00
DreamPiggy d406215cc9 For macCatalyst, which designed to be used on macOS 10.13, so don't need OSSpinLock 2020-11-20 14:48:14 +08:00
DreamPiggy 6962f8c131
Merge pull request #3129 from dreampiggy/feature_options_context_image_loader_protocol
Added the options and context arg for Image Loader custom protoocl, this can be used for advanced user to grab and check for context for current loading URL to process the logic
2020-11-20 11:52:19 +08:00
DreamPiggy 9365dad9b0 Update the built-in loaders for the new protocol methods 2020-11-19 16:22:44 +08:00
DreamPiggy 6f90bc083a Added the options and context arg for Image Loader custom protoocl, this can be used for advanced user to grab and check for context for current loading URL to process the logic. 2020-11-19 16:17:56 +08:00
DreamPiggy cbbf3285e8 Follow Apple's best practice to use lock for array insert/remove thread safe, replace all current dispatch_semaphore usage into the os_unfair_lock, use OSSpinLock for iOS 10- lower firmware 2020-11-19 15:49:45 +08:00
Bogdan Poplauschi 6465dc3a17 Added link to the Data Collection Practices (https://sdwebimage.github.io/DataCollection/index.html) 2020-11-16 20:41:10 +02:00
DreamPiggy 2c8ed9a2f3 GravatarBumped version to 5.9.5
update CHANGELOG
2020-11-13 17:29:59 +08:00
DreamPiggy 264d7a490c
Merge pull request #3113 from MoZhouqi/master
Add animationImages support when using SDAnimatedImageView
2020-11-03 10:26:39 +08:00
Zhouqi Mo 4e73d478a9 Add animationImages support when using SDAnimatedImageView 2020-10-30 15:36:56 +08:00
DreamPiggy 88b3ba211c Bumped version to 5.9.4
update CHANGELOG
2020-10-23 10:36:09 +08:00
DreamPiggy 39baf0bba6
Merge pull request #3110 from kinarobin/fix-disk-image-fetch-bug
Fixed the store cache type was specified to `SDImageCacheTypeDisk `  that no pictures were obtained when the disk had pictures
2020-10-21 18:11:24 +08:00
libin14 ddbeaa1cdc fix disk image fetch bug 2020-10-21 10:52:52 +08:00
DreamPiggy 83116a97bb
Merge pull request #3108 from perrystreetsoftware/fix/transition-race-condition
Fix race condition when using transitions that are canceled and then switched to a new transition or load operation
2020-10-20 15:52:35 +08:00
Eric Silverberg 85d1908025 Fix race condition when using transitions that are canceled and then switched to a new transition or load operation 2020-10-14 14:02:06 -04:00
DreamPiggy a71dcd2b43 Bumped version to 5.9.3
update CHANGELOG
2020-10-13 12:23:02 +08:00
DreamPiggy d31e82fdd1
Merge pull request #3104 from kinarobin/fix-memory-cache
Fix  store cache in memory bug
2020-10-13 10:39:08 +08:00
Kinarobin 7c70e574c1
Merge branch 'master' into fix-memory-cache 2020-10-12 19:52:23 +08:00
libin14 d66597a41f fix store cache in memory bug 2020-10-12 19:46:24 +08:00
DreamPiggy a55ffe0b87
Merge pull request #3103 from seven332/master
Test case for coder priority in SDAnimatedImage
2020-10-12 16:26:54 +08:00
seven332 2a28157787 Add test case for coder priority in SDAnimatedImage 2020-10-11 01:50:36 +08:00
DreamPiggy b57eae42df
Merge pull request #3101 from seven332/master
Fix coder priority in SDAnimatedImage
2020-10-10 14:16:18 +08:00
seven332 69e492f2ee
Reversely traverse coders in SDAnimatedImage
Allow overriding default coders for known image format
2020-10-09 18:30:23 +08:00
DreamPiggy 665d02280f Update the CHANGELOG.md 2020-09-29 23:24:53 +08:00
DreamPiggy 63130c6f74
Merge pull request #3094 from YuAo/transition_patch
[SDWebImageTransition] Fix: `duration` is not used in convenience initializers.
2020-09-29 23:22:41 +08:00
DreamPiggy f00dc08b9f Bumped version to 5.9.2
update CHANGELOG
2020-09-29 23:17:01 +08:00
YuAo b52b01d4a2 [SDWebImageTransition] Fix: `duration` is not used in the convenience initializers 2020-09-29 19:31:38 +08:00
DreamPiggy 3df06e9f4b
Merge pull request #3092 from dreampiggy/fix_animated_image_callback_when_stop
Fix the issue that SDAnimatedImageView will trigger an empty callback when animation stopped. This will cause some bad effect such as rendering a empty image or placeholder image (especially on iOS 14)
2020-09-28 14:13:47 +08:00
DreamPiggy 718ce14753 Update the test case about this stopAnimating behavior changes 2020-09-28 11:34:48 +08:00
DreamPiggy 7cc90666e8 Fix the issue that SDAnimatedImageView will trigger an empty callback when animation stopped. This will cause some bad effect such as rendering a empty image or placeholder image (especially on iOS 14) 2020-09-27 14:58:23 +08:00
DreamPiggy 7a21432a37 Bumped version to 5.9.1
update CHANGELOG
2020-09-11 18:51:23 +08:00
DreamPiggy 57ff3b2de9
Merge pull request #3081 from dreampiggy/bugfix_scale_regex
Fix the issue of SDAnimatedImage initWithContentsOfFile where the path name less than 3 characters
2020-09-06 10:27:41 +08:00
DreamPiggy c12781b843 Added the test case to ensure the scale detect function works 2020-09-04 16:36:56 +08:00
DreamPiggy 4f10e79f05 Fix the logic in SDAnimatedImage to detect scale from file path. Should not limit any path length 2020-09-04 16:36:30 +08:00
DreamPiggy f45c0441fd
Merge pull request #3078 from wtracyliu/fix_typos
fix typos in SDImageCache
2020-08-31 19:41:36 +08:00
Wentao Liu 70a57758c0 fix typos in SDImageCache 2020-08-31 19:03:05 +08:00
Kinarobin c0a9b4af09
Merge pull request #3076 from JonyFang/master
Bumped Copyright to cover 2020
2020-08-30 22:10:23 +08:00
JonyFang d932d1c239 Bumped Copyright to cover 2020
Signed-off-by: JonyFang <jony.chunfang@gmail.com>
2020-08-30 13:13:20 +08:00
DreamPiggy ae3d0a7703 Bumped version to 5.9.0
update CHANGELOG
2020-08-27 16:31:12 +08:00
DreamPiggy 1221e763cb
Merge pull request #3074 from dreampiggy/feature_transition_when_async_callback
Refactory the current behavior to use transition. Now it automatically do transition when manager callback asynchronously (if user see waiting, then do transition)
2020-08-27 14:39:43 +08:00
DreamPiggy bcda3f5000 Change to always return SDImageCacheTypeDisk cache type when querying memory cache (unless user cancel the query) 2020-08-27 11:08:12 +08:00
DreamPiggy 2c9eaccf23 Remove the `SDWebImageForceTransitionAsync`, change the default behavior because it's most suitable for UI rendering and common use case. No need this hack. If user want, we may produce a `setTransitionBlock` in the future 2020-08-27 10:49:57 +08:00
DreamPiggy 6f61b7e37e Added the test case about the doing transition when async callback 2020-08-24 16:46:35 +08:00
DreamPiggy df0f6008fc Refactory the current behavior to use transition. Introduce `SDWebImageForceTransitionAsync` (compared to old one `SDWebImageForceTransitionAlways`) 2020-08-24 16:24:39 +08:00
DreamPiggy 35578f0524
Merge pull request #3067 from dreampiggy/bugfix_scale_down_too_small_pixels
Add the support to pass small bytes to `decodedAndScaledDownLargeImage`, which always scale down (at least 1x1 pixel) but not return the original size
2020-08-24 14:49:04 +08:00
DreamPiggy 2a27c9cbbd
Merge pull request #3072 from dreampiggy/fix_format_detech_small_svg
Fix the image format detection for smaller SVG which less than 100 Bytes
2020-08-21 17:01:22 +08:00
DreamPiggy c0e34ee391 Update some comments and fix typo 2020-08-15 19:41:48 +08:00
DreamPiggy 6b0ef2e741 Update the new test cases about this new behavior 2020-08-15 19:36:05 +08:00
DreamPiggy 01e5e429fd Change the behavior, supports to scale down to at least 4 Bytes (1x1 pixels) image. Does not hard-code limit 1MB 2020-08-15 19:24:15 +08:00
DreamPiggy f9a089d437 Fix the image format detection for smaller SVG which less than 100 Bytes. 2020-08-15 18:50:40 +08:00