Commit Graph

2953 Commits

Author SHA1 Message Date
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
DreamPiggy c1a5546350 Add the test case about the protect code, though in theory this can not be triggered. Need 87381 pixel width 2020-08-15 18:48:01 +08:00
DreamPiggy a746a3a136 Add a protect when tile rectangle is too small to calculate when using `SDWebImageScaleDownLargeImages` 2020-08-15 18:48:01 +08:00
DreamPiggy b483ec2959
Merge pull request #3070 from dreampiggy/bugfix_exif_thumbnail_pixel_size_large
Fix the bug when the thumbnail pixel size is larger than the pixel size, and the image has EXIF orientation, the final UIImage will use wrong image orientation
2020-08-14 14:19:45 +08:00
DreamPiggy dff33028a0 Added test case about this EXIF orientation and thumbnail decoding fix 2020-08-13 18:26:04 +08:00
DreamPiggy e142610455 Fix the bug when the thumbnail pixel size is larger than the pixel size, and the image has EXIF orientation, the final UIImage will use wrong image orientation 2020-08-13 18:17:28 +08:00
DreamPiggy 09aee5f534
Merge pull request #3066 from dreampiggy/feature_default_cache_path
Supports the user to customize the default disk cache directory, which can be used to share cache for App && App Extension
2020-08-13 10:40:38 +08:00
DreamPiggy 74a3d263c9 Update the comments and fix the coding style 2020-08-12 10:38:45 +08:00
DreamPiggy 5ed134fff6 Update the test case about default cache directory 2020-08-10 16:27:31 +08:00
DreamPiggy 1873b7198f Supports the user to customize the default disk cache directory, which can be used to share cache for App && App Extension 2020-08-10 15:41:07 +08:00
DreamPiggy 40023d5668 Merge branch '5.8.x' of https://github.com/SDWebImage/SDWebImage 2020-07-16 21:38:53 +08:00
DreamPiggy 2f9ef53b99 Bumped version to 5.8.4
update CHANGELOG
2020-07-16 21:33:06 +08:00
kinarobin 0e0cc576da early return when image load canceled 2020-07-16 21:29:23 +08:00
kinarobin 4ed1ce29dc fix race condition when use transition 2020-07-16 21:29:23 +08:00
DreamPiggy 19ca248e93
Merge pull request #3053 from kinarobin/fix-race-condition-when-using-transition
Fix race condition when use transition but canceling an operation
2020-07-16 21:27:51 +08:00
kinarobin 8cde50d03d early return when image load canceled 2020-07-16 20:52:15 +08:00
DreamPiggy 5a34f2d468
Merge pull request #3052 from dreampiggy/fix_imageio_copy_mutable_dictionary_crash
Try to copy the local NSMutableDictionary before calling CGImageSourceCreateImageAtIndex, try to solve the rare crash inside ImageIO call stack.
2020-07-16 20:14:53 +08:00
kinarobin 088b356a1f fix race condition when use transition 2020-07-16 18:02:47 +08:00
DreamPiggy aba80b66c2 Try to copy the local NSMutableDictionary before calling CGImageSourceCreateImageAtIndex, try to solve the rare crash inside ImageIO call stack. 2020-07-16 14:26:51 +08:00
DreamPiggy e7b87885ae
Merge pull request #3048 from dreampiggy/feature_webp_ios14
Supports built-in WebP/AWebP codec from ImageIO for iOS 14/tvOS 14/macOS 11/watchOS 7
2020-07-15 17:58:11 +08:00
DreamPiggy 6fb20ce312 Refactory the implementation of that canDecode/canEncode, use single method with Set to check, instead of creating different internal files 2020-07-06 11:22:53 +08:00
DreamPiggy 53b2420789 Mark the API available for HEIC/AWebP coders, update the example 2020-07-06 10:55:01 +08:00
DreamPiggy d09ff5a654 Fix the SwiftPM support and Static library 2020-07-03 16:37:01 +08:00
DreamPiggy 8dbc0ac7d8 Add the test cases for WebP decoding. iOS 14 seems does not support Web Encoding currently 2020-07-03 15:53:35 +08:00
DreamPiggy 7bfd67a94f Update the Example of WebP coder for iOS/macOS/tvOS/watchOS 2020-07-03 12:55:49 +08:00
DreamPiggy 62a6ab8e71 Update the project settings for WebP coder 2020-07-03 12:55:49 +08:00
DreamPiggy 6eacb15067 Add support for built-in ImageIO WebP codec for iOS 14/tvOS 14/macOS 11/watchOS 7 2020-07-03 12:55:49 +08:00
DreamPiggy f876da5031 Bumped version to 5.8.3
update CHANGELOG
2020-07-02 11:06:08 +08:00
DreamPiggy 8a57e935b8
Merge pull request #3047 from dreampiggy/behavior_sdanimatedimage_encoding_animation
Add the support for that UIImage+MultiFormat methods on SDAnimartedImage, which supports encoding the animation like GIF/APNG/WebP with lower compression quality.
2020-07-02 10:42:54 +08:00
DreamPiggy 04cc6f682c Add the support for that UIImage+MultiFormat methods on SDAnimartedImage, which supports encoding the animation like GIF/APNG/WebP with lower compression quality. 2020-07-01 23:21:02 +08:00
DreamPiggy 4e2a52556c
Merge pull request #3046 from dreampiggy/fix_ios14_vector_image_rendering
Fix the issue of iOS 14 vector image rendering on SDAnimatedImageView
2020-07-01 22:42:52 +08:00
DreamPiggy 221aa2c905 Fix the wrong code use super.respondsToSelector, should use the superClass.instancesRespondToSelector to check super class itself contains the implementation 2020-07-01 19:33:19 +08:00
DreamPiggy 033bb5321f Fix the issue of iOS 14 vector image rendering on SDAnimatedImageView. Should call super method if need for best compatibility 2020-07-01 17:10:32 +08:00
DreamPiggy df8bd89a86 Bumped version to 5.8.2
update CHANGELOG
2020-06-23 21:33:36 +08:00
DreamPiggy 15fb09afa1
Merge pull request #3043 from dreampiggy/fix_ios14_animated_image_static_render
Fix the issue that SDAnimatedImageView can not render static image on iOS 14.
2020-06-23 21:20:56 +08:00
DreamPiggy bb7b1914e6 Fix the issue that SDAnimatedImageView can not render static image on iOS 14.
UIKit some internal behavior changes and we should always update the render layer if we have no `currentFrame`
2020-06-23 16:01:42 +08:00
DreamPiggy 28898e23fa
Merge pull request #3039 from henry2423/master
Fix the `maxPixelSize` logic issue will cause a upscale in SDImageIOAnimatedCoder
2020-06-23 11:13:03 +08:00
Henry Huang 4332c29740 Fix the `maxPixelSize` logic issue will cause a upscale in SDImageIOAnimatedCoder 2020-06-22 16:15:22 +08:00
DreamPiggy fe92b7aa3d Bumped version to 5.8.1
update CHANGELOG
2020-06-12 16:12:34 +08:00