Commit Graph

2714 Commits

Author SHA1 Message Date
DreamPiggy 5cb365ece9 Revert "Replace the background decode core function CGImageCreateDecoded with UIGraphicsRenderer, this one should use the perferred format"
This reverts commit 3929f2cd2a.
2019-12-21 17:20:19 +08:00
DreamPiggy 1ee04f64b0 Update all the documentation of the SDGraphicsImageRenderer, fix small behavior to match Apple's documentation 2019-12-16 17:29:58 +08:00
DreamPiggy 92e3bfcc3e Fix the sd_rotatedImageWithAngle on macOS, which should not apply the counterclockwise reverse 2019-12-16 17:29:58 +08:00
DreamPiggy 3929f2cd2a Replace the background decode core function CGImageCreateDecoded with UIGraphicsRenderer, this one should use the perferred format 2019-12-16 17:29:58 +08:00
DreamPiggy 1e778f0fe6 Refactory the `sd_flippedImageWithHorizontal` with the UIGraphicsRenderer, do not always need ARGB8888 2019-12-16 17:29:58 +08:00
DreamPiggy 48a7b7f943 Fix the issues during refactory, the UIGraphicsRenderer using the point size, not pixel size 2019-12-16 17:29:58 +08:00
DreamPiggy c49bc5c925 Change the implementation of `sd_rotatedImageWithAngle` using the UIGraphicsRenderer, avoid always using ARGB8888 2019-12-16 17:29:58 +08:00
DreamPiggy d5734cd6cd Fix the implementation of SDGraphicsImageRendererFormat, now use the dynamic getter/setter to forward to UIGraphicsImageRendererFormat 2019-12-16 17:29:58 +08:00
DreamPiggy 8fa6c7519c Replace the SDGraphicsBeginImageContextWithOptions with SDGraphicsImageRenderer 2019-12-16 17:29:58 +08:00
DreamPiggy ee0aa220e0 Fix the compile issue on watchOS/macOS 2019-12-16 17:29:58 +08:00
DreamPiggy 6ff83fde6b Added SDGraphicsImageRenderer (which bridge to UIGraphicsImageRenderer on iOS 10+), prepare to replace old CGContext create code 2019-12-16 17:29:58 +08:00
DreamPiggy 0b12058427 Fix the test case compile warning of `SDWebImageTestDiskCache` 2019-12-16 12:44:52 +08:00
DreamPiggy 5cf8ddc6cb update the Readme with PDF/SVG/Link plugin repos from SDWebImage organization 2019-12-13 17:26:20 +08:00
DreamPiggy 7ef9a314b1 Update the CHANGELOG for 5.4.0 2019-12-06 15:44:40 +08:00
DreamPiggy 421ed8fa8a
Merge pull request #2903 from dreampiggy/fix_thread_safe_datatask
Fix the thread safe issue with Downloader and DownloaderOperation during cancel
2019-12-06 14:21:02 +08:00
DreamPiggy 1601418d51 Remove one unused import 2019-12-05 19:40:45 +08:00
DreamPiggy 9dae0e7b96 Fix the thread safe issue with Downloader and DownloaderOperation during cancel 2019-12-05 19:33:10 +08:00
DreamPiggy bc9b488bf3 Bumped version to 5.4.0
Update the CHANGELOG
2019-12-05 19:26:18 +08:00
DreamPiggy 73daf38db8
Merge pull request #2902 from dreampiggy/fix_ensure_UIImage_associated_object
Using one global function to ensure we always sync all the UIImage category assocaited object status correctly inside our framework
2019-12-05 15:13:44 +08:00
DreamPiggy 7f0789aca9 memory cost should not be copied between different UIImage, it's a getter-only method in general 2019-12-04 16:18:52 +08:00
DreamPiggy 69d163fc37 Using one global function to ensure we always sync all the UIImage category assocaited object status correctly inside our framework 2019-12-03 21:21:07 +08:00
DreamPiggy 936d04f726 Fix the build issue on SDWebImage Static library target 2019-12-03 20:42:46 +08:00
DreamPiggy d6068191d7 Merge branch '5.3.x' 2019-12-03 20:05:19 +08:00
DreamPiggy 1f801b44ef Bumped version to 5.3.3
Update the CHANGELOG
2019-12-03 19:40:36 +08:00
Ben Cherry 9f6422b506 Support using NSCache delegate with SDMemoryCache default implementation 2019-12-03 19:30:22 +08:00
DreamPiggy 0139a8004e
Merge pull request #2899 from bcherry/nscache_delegate
Support using NSCache delegate with SDMemoryCache default implementation
2019-12-02 20:36:47 +08:00
DreamPiggy 96bb7b753e
Merge pull request #2900 from dreampiggy/feature_wait_store_cache
Add `SDWebImageWaitStoreCache`, which wait for all the async disk cache written finished and then callback, useful for advanced user who want to touch the cache right in completion block
2019-12-02 20:34:16 +08:00
DreamPiggy e37d07bda8 Add `SDWebImageWaitStoreCache`, which wait for all the async disk cache written finished and then callback, useful for advanced user who want to touch the cache right in completion block 2019-11-29 15:02:16 +08:00
DreamPiggy 6d7a68e07e
Merge pull request #2898 from dreampiggy/feature_extended_metadata_disk_cache
Allows advanced user to read/write extended metadata associated with image data from disk cache
2019-11-29 14:58:43 +08:00
DreamPiggy 5c1351a2fd Added `test47DiskCacheExtendedData` test case 2019-11-28 21:02:26 +08:00
DreamPiggy 5f2a9695d8 Add the test case for SDFileAttributeHelper, fix the issue that associated object is lost 2019-11-28 19:49:51 +08:00
Ben Cherry dd2c5263c8 Support using NSCache delegate with SDMemoryCache default implementation 2019-11-26 10:22:35 -08:00
DreamPiggy 9aa4ac1ca7 Rename the NSFileManager+ExtendedAttributes into the SDFileAttributeHelper, because it does not have any reply on NSFileManager API 2019-11-25 21:53:12 +08:00
DreamPiggy 1df1d6a3ce Using the new NSKeyedArchive method on iOS 11+, use try catch on the old fireware to protect runtime crash 2019-11-25 20:10:35 +08:00
DreamPiggy 9f470954c4 Change the id<NSCoding> into id<NSObject, NSCoding>, to support directlly usage like isKindOfClass 2019-11-25 17:05:27 +08:00
DreamPiggy 46b0c4bae8 Use the NSCoding object instead of `NSData`, make it possible to directlly get the extended data from memory cache without unarhive by user. 2019-11-25 15:43:31 +08:00
DreamPiggy 7c8d3225c8 Rename the the extended data to bind it into the UIImage object, which make it compatible for memory cache 2019-11-24 01:33:08 +08:00
DreamPiggy 892a7ad892 Add the feature to allows advanced user to provided extended data associarted with image data, used for scale factor saving, rich link metadata saving, etc 2019-11-23 18:50:39 +08:00
DreamPiggy 74526bdde4 Bumped version to 5.3.2
Update the CHANGELOG
2019-11-22 16:22:42 +08:00
DreamPiggy d1be404b63 Remove the untracked DS_Store file 2019-11-22 16:16:20 +08:00
DreamPiggy 2e4107e21e
Merge pull request #2895 from ZXIOU/fixAnimatedImageBugs
Fix animated image playback bugs
2019-11-22 14:23:37 +08:00
zxiou dd8ea8f7fb delete IDEWorkspaceChecks 2019-11-22 11:49:57 +08:00
zxiou d5da5dbef7 delete useless files 2019-11-21 19:32:11 +08:00
zxiou fe0e42afc2 fix the core render of SDAnimatedImagePlayer and fix assignment animationRepeatCount does not work
Signed-off-by: zxiou <zhangxu6@xiaomi.com>
2019-11-21 19:17:44 +08:00
DreamPiggy 7adc385b7d Bumped version to 5.3.1
Update the CHANGELOG
2019-11-09 15:17:33 +08:00
DreamPiggy 92d173e221
Merge pull request #2888 from dreampiggy/bugfix_animated_player_when_invisible
Fix the case even when Animated Image View is not visible, user calll startAnimating can still do animation
2019-11-09 14:53:38 +08:00
DreamPiggy 983dd59e4f Add one test case for this behavior: `test14AnimatedImageViewStopPlayingWhenHidden` 2019-11-09 13:48:27 +08:00
DreamPiggy 29027a693a Update the test case for animated image view format test 2019-11-09 03:10:18 +08:00
DreamPiggy eef82411c4 Add a double check on SDAnimatedImageView's startAnimating, don't actually do animation when not visible 2019-11-08 22:34:47 +08:00
DreamPiggy b75c227433 Do not cause the display link to fire before user calling `startPlaying` method 2019-11-08 22:23:50 +08:00