Commit Graph

1567 Commits

Author SHA1 Message Date
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 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 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
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 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 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
DreamPiggy 3d1280315b Keep the progressive decoding process only exist one per image download. Cancel the unused progressive decoding when full pixel data is available. 2020-03-11 11:46:03 +08:00
DreamPiggy bd33f4179d Supresss the deprecation warning when min deployment target version set to iOS 13+ or macCatalyst 2020-03-05 18:44:50 +08:00
DreamPiggy b54cdcc4bb Change the deprecatation into the soft deprecation, which still works but will be removed in SDWebImage 6.0.0 2020-03-05 17:55:39 +08:00
DreamPiggy cf79d1c3ae Revert the changes to check `SDWebImageRetryFailed` before adding the black list. This is the previous version behavior. 2020-03-05 17:00:04 +08:00
DreamPiggy 2abb8d0628 Formal deprecate the SDWebImageContextCustomManager context option 2020-03-04 12:25:59 +08:00
DreamPiggy f0388739b6 Add the new context option, including the cache, loader and coder. They can be used to use custom cache/loader in a more convenient way, instead of creating dummy SDWebImageManager 2020-03-04 12:18:29 +08:00
DreamPiggy 6f8d83b2f2 Add another logic. to check UIAnimatedImage when there are no image format to detect, this should use GIF to encode 2020-03-02 14:52:50 +08:00
DreamPiggy 3df399508e Add a better check to handle the cases when call `storeImage` without imageData. Firstly check SDAnimatedImage, then check sd_imageFormat. 2020-03-02 14:52:50 +08:00
DreamPiggy 692f01b84b Fix the rare case when call `SDWebImageDownloaderOperation.cancel`, the completion block will callback twice 2020-03-02 13:06:09 +08:00
DreamPiggy f607e909bc Fix the SDWebImageDownloadStopNotification does not get removed on dealloc 2020-02-27 16:31:54 +08:00
DreamPiggy b395243d37 Garden all the private headers with description and null-ability annotation 2020-02-27 15:55:53 +08:00
DreamPiggy faf82c1e1a Complete all the SDWebImage error code with the localized description, make it easy for debugging 2020-02-27 15:39:37 +08:00
DreamPiggy f7d0fae94d
Merge pull request #2947 from dreampiggy/project_try_fix_swiftpm_swift5.2
Try to fix the issue caused by Swift PM 5.2, the `sources` DSL only matches the individual source files, but not folder
2020-02-27 14:56:45 +08:00
DreamPiggy c0f796aa77 Try to fix the issue caused by Swift PM 5.2, the `sources` DSL only matches the individual source files, but not folder 2020-02-27 11:59:56 +08:00
DreamPiggy 5c3c40288f
Merge pull request #2936 from dreampiggy/feature_better_vector_support_pdf
Feature - better support for vector format detection, now PDF rasterized bitmap is built-in
2020-02-26 16:02:20 +08:00
DreamPiggy ac4dcbe316 Copy the SVG detection from SVGCoder to the utils 2020-02-26 12:14:50 +08:00
DreamPiggy 4acd81177b Added macros to expand SPI symbol to Selector, which can make it easy to distinguish and maintain in the future 2020-02-12 12:35:48 +08:00
DreamPiggy 4d354c4acd Make the SDAniamtedImage response to the UIImage+Metadata category method, which should return the status matching the behavior 2020-02-12 12:13:04 +08:00
DreamPiggy d56636e15b Update the Example and Test case about URLSessionMetrics, expose the API in UIVIew+WebCache to make it easy to write code (or user have to write NSStringFromClass) 2020-01-30 18:33:16 +08:00
DreamPiggy ed894ecff5 Added the metrics in the download token, make it easy to grab the information right in completion block (is this useful ?) 2020-01-30 17:32:46 +08:00
DreamPiggy bb424d44fd Added the URLSessionTaskMetrics support for downloader && operation, which can be used for network metrics 2020-01-30 16:52:55 +08:00
DreamPiggy 5629af8330 Added `SDWebImageTransformVectorImage`, which can allows the transformer to transform the vector image format, although most coders works for vector format (if you don't grab CGImage), some are not 2020-01-30 16:13:05 +08:00
DreamPiggy ef2373668e Fix the Xcode 10 support using runtime selector, the force decode feature does not process on vector image format 2020-01-30 15:59:15 +08:00
DreamPiggy 8c6556e835 Fix the PDF data detection 2020-01-30 15:29:15 +08:00
DreamPiggy 96b0a2e031 Added the default ImageIO coder with PDF support, use the screen size if user does not provide any explict pixel size 2020-01-30 15:11:42 +08:00
DreamPiggy 08aab785db Added the case to detect PDF format from file signature 2020-01-30 14:04:12 +08:00
DreamPiggy 8ca4556066 Added the `sd_isVector` API on UIImage+Metadata, useful for case when we want to filter the vector/bitmap images. Vector currently only sipports PDF/SVG 2020-01-30 13:50:53 +08:00
DreamPiggy cb84dbb273 Added the PDF/SVG image type define 2020-01-30 13:31:57 +08:00
DreamPiggy 3459cd2fd0
Merge pull request #2934 from dreampiggy/bugfix_max_buffer_size
Fix the issue that `maxBufferSize` property does not correctlly works for `SDAnimatedImageView`
2020-01-26 18:36:06 +08:00
DreamPiggy d565a37529 Fix the issue that `maxBufferSize` property does not correctlly works for `SDAnimatedImageView`, should setup the player's property 2020-01-26 18:05:39 +08:00
Ben Govero 25fe6e97f9 Update docs to show correct arguments for SDInternalCompletionBlock 2020-01-23 17:53:14 -06:00
DreamPiggy bce101d112 The progressive animation should not update the loop count to 1 when automatically stopped at last index. 2020-01-18 15:38:02 +08:00