Commit Graph

1716 Commits

Author SHA1 Message Date
DreamPiggy 25b61bb5ae Refactor the cache path API. Only given the full cache path to allow user to choose to use filename or full path. And use a block instead of static array for additional cache path. 2018-04-13 11:10:14 +08:00
DreamPiggy e829637a30 Update to use scale factor instead of that firstFrameOnly, since it's not used frequently as scale 2018-04-13 02:34:52 +08:00
DreamPiggy b9773d09c0 Fix SDGetColorFromPixel ignore kCGImageAlphaOnly case 2018-04-13 02:15:18 +08:00
DreamPiggy eaf7bece7a Merge branch 'bugfix_indicator' into 5.x 2018-04-13 01:17:43 +08:00
DreamPiggy 7701215ae0 Fix the bug that reset indicator view does not remove from super view 2018-04-13 01:17:13 +08:00
DreamPiggy a710bc5472 Fix two warnings about losing precision in comparison 2018-04-12 01:19:06 +08:00
DreamPiggy d515a36337 Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x
# Conflicts:
#	SDWebImage/SDWebImageImageIOCoder.m
2018-04-12 01:16:34 +08:00
DreamPiggy 2cb03773db
Merge pull request #2261 from dreampiggy/feature_request_modifier_and_response
Feature request modifier and response
2018-04-11 16:51:28 +08:00
DreamPiggy e549e1abeb
Merge pull request #2272 from dreampiggy/fix_force_decode_alpha
Fix that force decode not works for alpha-channel images.
2018-04-11 16:40:21 +08:00
DreamPiggy 46e5b196f8 Fix the test about alpha images force decode 2018-04-11 16:10:41 +08:00
DreamPiggy 49cecfe34a Fix that force decode not works for alpha-channel images. This should only exclude animated images. All other images should use the display alpha info based on whether contains alpha or not to force decode 2018-04-11 14:15:27 +08:00
DreamPiggy b726d55436
Merge pull request #2271 from dreampiggy/performance_image_orientation
Remove the extra calculation of image orientation for ImageIO coder & Fix macOS image orientation
2018-04-11 14:03:43 +08:00
DreamPiggy e2c99f437d Remove the extra category method for `NSBitmapImageRep`. Only use `NSImage`'s native API to manage it 2018-04-11 12:57:46 +08:00
DreamPiggy cebf72d6d5 Refactor API. Change that `imageRef` arg description to `CGImage` to match the common design pattern and make it clear to Swift user 2018-04-11 11:32:43 +08:00
DreamPiggy 7d50d61b37 Update the NSImage+Addtions to allow specify a image orientation when using `CGImage`. Update all the place we use 2018-04-10 22:51:28 +08:00
DreamPiggy acbdb8c374 Add helper method in coder helper to create decoded CGImage to specify orientation. The existing method just call with Up orientation 2018-04-10 21:19:12 +08:00
DreamPiggy b9ec481edf Remove the extra calculation of image orientation for ImageIO coder 2018-04-10 21:19:12 +08:00
Bogdan Poplauschi 8801138fb2 Updated README.md to reflect the 5.x changes to the supported platforms and backward compatibility 2018-04-10 13:54:19 +03:00
DreamPiggy fa59de5f76 Merge branch 'refactor_coder_animation' into 5.x 2018-04-09 14:43:21 +08:00
DreamPiggy 0705a973be Update to import sd_isDecoded to avoid extra decode. And change exif orientation to CGImagePropertyOrientation define 2018-04-09 14:22:47 +08:00
DreamPiggy 22c293738a Update the progressive coder/ animated coder init API, which pass the options to support extensibility 2018-04-09 13:42:52 +08:00
DreamPiggy 02dfed984e
Merge pull request #2266 from dreampiggy/feature_scale_factor
Feature scale factor
2018-04-08 21:50:44 +08:00
DreamPiggy cbf8581696 Fix the scale factor issue on macOS using helper methods to match the behavior of UIKit. Also remove the unused API on NSImage category 2018-04-08 19:54:39 +08:00
DreamPiggy 1a3fb834a0 Add SDScaledImageForScaleFactor, make the API more clear. Fix the scale factor option issue 2018-04-08 00:50:19 +08:00
DreamPiggy 7a84e59eb1 Add the context option SDWebImageContextImageScaleFactor to custom a scale factor which is not based on the cache key. 2018-04-07 23:47:41 +08:00
DreamPiggy fea3a56d71 Add a SDWebImageCoderDecodeScaleFactor option to specify scale factor using for decoder. Since the scale information is not stored into image data itself, but generated from image file name & metadata. 2018-04-07 23:21:16 +08:00
DreamPiggy 55256d0091 Use a protocol instance instead of block for request modifier. This can solve the problem that Swift user is hard to grab the block back stored in dictionary. 2018-04-07 15:56:34 +08:00
DreamPiggy fa7d19c099 Update the comments and expose the token's request, which can be used for advanced usage. 2018-04-07 15:52:39 +08:00
DreamPiggy f01fe38fdd Add downloader request modifier to allow modify final HTTP request. Also open the API to allow advanced user to check cache & downloader operation. 2018-04-07 15:52:39 +08:00
DreamPiggy 01e75cfa7c Merge branch 'master' of https://github.com/rs/SDWebImage into 5.x 2018-04-06 13:45:17 +08:00
DreamPiggy 8d851b300f Merge branch 'refactor_coder_animation' into 5.x 2018-04-05 22:11:17 +08:00
DreamPiggy 407b708b38 Add shouldIncrementalLoad in SDAnimatedImageView to choose the animation behavior for progressive looading 2018-04-05 22:10:40 +08:00
DreamPiggy 00a0e01a32 Merge branch 'refactor_downloader_config' into 5.x 2018-04-05 18:45:30 +08:00
DreamPiggy 393085a9b0 Update the default downloader config to use the dispatch_once to avoid thread-safe issue 2018-04-05 18:44:38 +08:00
DreamPiggy 1d7dba33f5 Update the test about download operation, which using protocol instead of class 2018-04-05 15:25:14 +08:00
DreamPiggy 73c811dc23 Fix all code tied with SDWebImageDownloaderOperation class but not protocol, which previously relay on NSURLSession but it should not to be 2018-04-05 07:26:50 +08:00
DreamPiggy 793b7e33a8 Update the custom downloader operation to fix test 2018-04-05 06:06:01 +08:00
DreamPiggy 1dcd4441e1 Merge branch 'refactor_api_style' into 5.x 2018-04-05 01:36:34 +08:00
DreamPiggy 321101fa60 Use NS_EXTENSIBLE_STRING_ENUM instead of NS_STRING_ENUM 2018-04-05 01:35:59 +08:00
DreamPiggy 5622a68146
Merge pull request #2263 from dreampiggy/refactor_downloader_config
Refactor downloader config
2018-04-05 00:57:43 +08:00
DreamPiggy be36009d10 Update the test for custom download operation class. 2018-04-05 00:15:53 +08:00
DreamPiggy 6e402ce41c Add KVO for maxConcurrentDownloads to allow dynamic change 2018-04-05 00:15:53 +08:00
DreamPiggy 47aa73a436 Update the downloader token's property to match the comments 2018-04-05 00:15:53 +08:00
DreamPiggy c3892d7d08 Move all download settings into SDWebImageDownloaderConfig, make it more easy to use with clear API.
Deprecate `createNewSessionWithConfiguration`, which make downloader not sync with URLSession. If user need to specify sharedDownloader config, just modify the defaultDownloaderConfig instead.
2018-04-05 00:15:53 +08:00
DreamPiggy 6bdcf63224 Fix the test build 2018-04-03 02:07:59 +08:00
DreamPiggy 5670fc9174 Merge branch 'refactor_api_style' of https://github.com/dreampiggy/SDWebImage into 5.x 2018-04-02 22:29:42 +08:00
DreamPiggy c21381e83b Change `isRunning` on manager from method to property 2018-04-02 22:28:58 +08:00
DreamPiggy c24c3d3477 Merge branch 'refactor_context_option' into 5.x 2018-04-02 03:35:32 +08:00
DreamPiggy 8236dee202 Move the context arg after the `options` arg to make Swift ABI clear. Also update all view category to support context arg. 2018-04-02 03:24:23 +08:00
DreamPiggy d751b20652 Move all the webcache options into the `SDWebImageDefine.h` files to avoid import of `SDWebImageManager.h` and include cycle. 2018-04-01 22:02:50 +08:00