Commit Graph

2829 Commits

Author SHA1 Message Date
DreamPiggy 774571f498
Merge pull request #2977 from dreampiggy/attempt_fix_image_io_animated_image_thread_safe
SDAnimatedImageView animation rendering should not use CGContext force decoding, use `kCGImageSourceShouldCacheImmediately` instead which can avoid OOM for large number of GIFs
2020-04-11 17:40:59 +08:00
DreamPiggy c68f7f8196
Merge pull request #2983 from dreampiggy/project_rename_private_header_avoid_bad_pod_conflict
Rename the private header `UIColor+HexString` and `NSBezierPath+SDRoundedCorners` with SD prefix, to avoid the conflict when using CocoaPods
2020-04-11 17:40:26 +08:00
DreamPiggy d112d18088 Rename the private header `UIColor+HexString` and `NSBezierPath+SDRoundedCorners` with SD prefix, to avoid the conflict when using CocoaPods 2020-04-11 17:01:47 +08:00
DreamPiggy dddf4a8392
Merge pull request #2982 from dreampiggy/bugfix_animated_image_buffer_calculation
Fix that when first play animated image and use maxBufferSize to 0, the calculation does not works (The CGImage is nil)
2020-04-11 16:43:29 +08:00
DreamPiggy b65ea693ae Remove the time based test case for lazy decoding, because it's unstable. Now use offline manual test for this behavior 2020-04-11 16:40:55 +08:00
DreamPiggy a5e129dac7 SDAnimatedImageView animation rendering should not use CGContext force decoding, use `kCGImageSourceShouldCacheImmediately` instead which can avoid OOM for large number of GIFs #2977 2020-04-11 16:00:22 +08:00
DreamPiggy 13bae85e3d Fix that when first play animated image and use maxBufferSize to 0, the calculation does not works (The CGImage is nil) 2020-04-10 23:34:23 +08:00
DreamPiggy f52dc6b4bd Bumped version to 5.7.1
Update the CHANGELOG
2020-04-08 11:26:58 +08:00
DreamPiggy a8177c1327 Update the test case `test12ThatStoreCacheTypeWork` to ensure the transformed image does not inherit the image format or any attributes from original one 2020-04-08 11:18:03 +08:00
DreamPiggy 7cdf484fdd
Merge pull request #2976 from bdaz/master
Don't copy attributes from originalImage to transformedImage when caching transformedImage
2020-04-08 10:57:04 +08:00
Brian Amerige ed8887db35 [SDWebImageManager] Don't copy attributes from originalImage to transformedImage. This fixes https://github.com/SDWebImage/SDWebImage/issues/2975. 2020-04-07 13:58:11 -07:00
DreamPiggy bddc130914 Update the README about the latest SwiftUI support and Ecosystem 2020-04-05 11:51:39 +08:00
DreamPiggy 794a3875a4
Merge pull request #2974 from dreampiggy/fix_code_style
Fix the wrong value assignment for SDAnimatedImageView code on macOS, warning
2020-04-05 11:13:03 +08:00
DreamPiggy bbc65ed0cc Fix the wrong value assignment for SDAnimatedImageView code on macOS, warning 2020-04-04 18:30:30 +08:00
DreamPiggy e2285181a6 Update the CHANGELOG 2020-04-04 17:55:06 +08:00
DreamPiggy 82249e82d8 Bumped version to 5.7.0
Update the CHANGELOG
2020-04-04 17:48:31 +08:00
DreamPiggy 83a40c3679
Merge pull request #2973 from dreampiggy/behavior_uttype_from_unkown_format
Change the behavior to return the abstract type for unknown image format, this  can solve the accident issue for custom coder who provide a new format
2020-04-04 16:52:53 +08:00
DreamPiggy ca975a3c46
Merge pull request #2972 from dreampiggy/feature_encoding_options_thumnail_background
Feature supports encoding options like max file size, max pixel size, as well as background color when using JPEG for alpha image
2020-04-04 16:50:45 +08:00
DreamPiggy 6316f08bb8 Remove the compression quality when have max file size limit, and update the test cases for JPEG 2020-04-04 15:53:46 +08:00
DreamPiggy b427ad5f3f Added the support for max file size for lossy encoding 2020-04-04 15:31:34 +08:00
DreamPiggy 1ce44a12b0 Change the behavior to return the abstract for unknown UTI type, this can solve the accident issue for custom coder who provide a new format 2020-04-04 14:19:08 +08:00
DreamPiggy db610363f4 Added the test case to ensure the background color encoding options on JPEG works 2020-04-04 13:07:20 +08:00
DreamPiggy f798b89fc2 Fix the maxPixelSize for animated images, update the readme 2020-04-04 00:01:26 +08:00
DreamPiggy e71bbf239c Supports the encoding max pixel size options as well, which let the codec to do thumbnail rescale encoding, better performance than transformer to scale and then encode 2020-04-03 23:28:08 +08:00
DreamPiggy 2ca731c2e8 Support to provide the background color when you encode a alpha UIImage into non-alpha format like JPEG 2020-04-03 22:52:43 +08:00
DreamPiggy 374b3f7981
Merge pull request #2971 from dreampiggy/fix_framework_version_symbol_link_error
Fix the issue for Carthage/SwiftPM framework version symbols, this should match the framework name SDWebImage, or will get a link error when used
2020-04-03 21:00:26 +08:00
DreamPiggy d4782871e0 Fix the issue for Carthage/SwiftPM framework version symbols, this should match the framework name SDWebImage, or will get a link error when used 2020-04-03 20:05:28 +08:00
DreamPiggy 897e38c1b6
Merge pull request #2966 from dreampiggy/bugfix_refactory_thumbnail_cache_key
Refactory the current thumbnail && transformer about cache key. Developer should have the API to calcualte the cache key from thumbnail or transformer, not hard-coded.
2020-04-03 16:30:39 +08:00
DreamPiggy 8c2141ecda Added the API to query disk image with options and context, this is needed if you have animated image/transformer/thumbnail usage 2020-04-03 11:25:47 +08:00
DreamPiggy dfc8fe27d9 Refactory to simplify the code to calculate the original cache key, pass null to disable this. 2020-04-02 20:15:22 +08:00
DreamPiggy 543b5c95d4 Fix the test case about the original cache key calculation rule 2020-04-02 20:15:22 +08:00
DreamPiggy 1dc70b8430 Refactory the current thumbnail && transformer about cache key. Developer should have the API to calcualte the cache key from thumbnail or transformer, not hard-coded. 2020-04-02 20:15:22 +08:00
DreamPiggy 51dee05acf
Merge pull request #2968 from dreampiggy/feature_query_cache_type
Added new query cache type support, including the SDImageCache API and context option
2020-04-02 16:55:56 +08:00
DreamPiggy ce4eced4d4 Added the query cache type cases as well, update some documentation 2020-04-02 16:15:10 +08:00
DreamPiggy 067174b1fd Added the test case about using the custom cache and loader with context option to manager, full pipeline testing 2020-04-02 12:49:15 +08:00
DreamPiggy d4da82e9c3 Update the test cases about the custom ImageCache protocol 2020-04-02 12:18:12 +08:00
DreamPiggy ae1f6b9b8c Revert the removal to the old SDImageCache protocol API, should keep API with to use .all cache type, until next major version 2020-04-02 11:41:17 +08:00
DreamPiggy 5d45bb9301
Merge pull request #2967 from huangboju/master
Simplify the xattr helper method's code with modern Objective-C syntax
2020-04-02 11:19:10 +08:00
huangboju 45be39f4a1 Update SDFileAttributeHelper.m 2020-04-02 10:15:12 +08:00
DreamPiggy de153b0a32 Added the new Async API for disk data query, to avoid user to dispatch their own global queu (not IO queue), solve the IO safe issue 2020-04-01 17:16:33 +08:00
DreamPiggy 7f540a6296 Fix the test cases for cacheType arg 2020-04-01 17:16:33 +08:00
DreamPiggy fbe76bc436 Added new query cache type support, including the SDImageCache API and context option 2020-04-01 17:16:33 +08:00
huangboju a7606eb5e2 simplify code 2020-04-01 14:38:22 +08:00
DreamPiggy 0335b96114
Merge pull request #2962 from rain2540/patch-1
Update README.md
2020-03-25 14:40:30 +08:00
rain2540 ef6aebf9ae
Update README.md 2020-03-25 14:16:19 +08:00
DreamPiggy 2dcf1b6599 Bumped version to 5.6.1
Update the CHANGELOG
2020-03-13 20:49:15 +08:00
DreamPiggy ab2be2373f
Merge pull request #2483 from dreampiggy/fix_progressive_coder_queue
Keep the progressive decoding process only exist one per image download. Cancel the unused progressive decoding when full pixel data is available.
2020-03-13 11:43:39 +08:00
DreamPiggy 0f2818a6c1
Merge pull request #2959 from dreampiggy/little_private_header_garden
Fix the NotificationCenter does not remove the observer and little private header garden
2020-03-11 14:51:09 +08:00
DreamPiggy 8f9174a952 Coding Style fix 2020-03-11 12:19:10 +08:00
DreamPiggy 13d0e739fb Update the coderQueue QoS based on SDWebImageDownloaderLowPriority && SDWebImageDownloaderHighPriority 2020-03-11 11:54:10 +08:00