DreamPiggy
1ed76f4f47
Fix the bitmapInfo support for greyscale color, update test case
2022-07-16 17:43:48 +08:00
DreamPiggy
f1fe4ca8b8
Calculate the DPI based on PDF mediaBox, support thumbnailPixelSize
...
Move the vector code from ImageIOAnimatedCoder to ImageIOCoder, since it's not animatable :)
2022-07-13 18:18:21 +08:00
DreamPiggy
ad953cdcc5
Fix the case when user cancel the image loading for same URL in sequence cause placeholder mass
...
This PR introduce 2 API changes:
1. Cache query now return cache token and callback sync when called from main queue, unlike NSOperation always callback async
2. Expose the set image operation, and update the documentation behavior about that `SDWebImageDelayPlaceholder`
2022-06-26 20:04:51 +08:00
DreamPiggy
d58a1006c2
Merge pull request #3362 from dreampiggy/behavior_thumbnail_store_cache
...
Feature: Change thumbnail cache behavior as expected, share cache through different loading pipeline without extra download
2022-06-26 15:29:55 +08:00
DreamPiggy
071a8934e3
Fix the assert case when loader callback nil image data
2022-06-26 00:29:24 +08:00
DreamPiggy
69acd5a158
Added all the 3 test cases
...
test17ThatThumbnailCacheQueryNotWriteToWrongKey
test18ThatThumbnailLoadingCanUseFullSizeCache
test19ThatDifferentThumbnailLoadShouldCallbackDifferentSize
2022-06-26 00:29:24 +08:00
DreamPiggy
1f3ee8e9d5
Added new API for custom coder better handling the thumbnail size
...
The current WebP/HEIF/AVIF coder both copy paste the same code multiple times and have to fix one by one
2022-06-22 16:53:40 +08:00
DreamPiggy
018cf32ab3
Added test23ThatThumbnailEncodeCalculation test case
2022-06-20 18:20:34 +08:00
DreamPiggy
3b0b232616
Added test case test22ThatThumbnailPreserveAspectRatio
2022-06-12 16:44:21 +08:00
DreamPiggy
368825eff6
Update the test case, now when using force decode, the image orientation is always UP
2022-03-15 22:56:03 +08:00
DreamPiggy
ba66c41fd6
Merge pull request #3332 from dreampiggy/workaround_prefer_input_cgimage_bitmap_info
...
Workaround the iOS 15+ Force Decode may return black image because of CoreGraphics
2022-03-08 15:17:04 +08:00
lizhuoli
3eb553d251
Update the test case again for checking non-blank image
2022-03-04 17:55:07 +08:00
lizhuoli
6dcbec2b87
Update the test case and use Xcode 13.2.1 with iOS 15.3+ simulator
2022-03-04 11:37:44 +08:00
lizhuoli
64902962e3
Fix the test case by adding a little inaccuracy for blur effect result
2022-03-03 21:49:49 +08:00
lizhuoli
4589048fdd
Fix the some transform test case does not check the color hex
2022-03-03 19:43:59 +08:00
soondl
4302777c6f
Add test case `testUIImageViewSetImageWithURLDiskSync`
2022-02-20 19:01:12 +09:00
ty0x2333
33ff352d4e
Add test case: test07ThatDecodeAndScaleDownAlwaysCompleteRendering
2022-01-26 15:46:21 +08:00
lizhuoli
c0fbe7e3ef
Update test case
2021-10-18 21:44:01 +08:00
Kinarobin
e10c33bdd0
Merge pull request #3282 from kinarobin/fix-warning-in-uttype
...
Since `UTI` is an standard, we can use it directly to avoid warning on iOS 15
2021-10-12 20:48:36 +08:00
kinarobin
490644e027
apply github actions
2021-10-09 16:30:38 +08:00
kinarobin
22c9a4e549
fix test error in tvos
2021-10-08 10:33:57 +08:00
kinarobin
3d108c86a1
fix test error in macos
2021-10-07 18:30:38 +08:00
kinarobin
25f9d15b57
fix warning in uttype for ios15
2021-10-07 18:15:59 +08:00
DreamPiggy
7f078d21ba
Adopt SDAnimatedImage for `sd_imageFrameCount`
2021-05-25 16:05:42 +08:00
DreamPiggy
4ae33983e0
Added `sd_imageFrameCount` convenient API for UIAinmatedImage/NSBitmapImageRep
...
Fix one issue when input UIAnimatedImage contains only 1 image
2021-05-25 15:43:46 +08:00
DreamPiggy
fd326e3d51
Merge pull request #3238 from dreampiggy/fix_image_from_cache_api_behavior
...
Fix imageFromCacheForKey with options and context behavior, matching the async version one.
2021-05-21 15:43:14 +08:00
DreamPiggy
e83b76946a
Update the test for sync version API as well
2021-05-21 15:13:07 +08:00
kinarobin
426830d55f
change to AWebP
2021-05-21 14:57:14 +08:00
kinarobin
22cd94d08a
fix wrong memory cast in _UIAnimatedImage
2021-05-21 14:06:26 +08:00
DreamPiggy
43219b0739
Added test case `test29AcceptableStatusCodeAndContentType`
2021-05-07 16:26:52 +08:00
DreamPiggy
bed1638b42
Revert the "Don't encode/decode image when app will terminate"
2021-04-06 18:21:16 +08:00
DreamPiggy
aa2e264ffb
Merge pull request #3149 from kinarobin/fix-ImageIO-encode/decode-crash
...
Don't encode/decode image when app will terminated
2021-04-01 20:36:59 +08:00
DreamPiggy
140db1ca46
Fix the logic for choosing the cache instance when using transformer. The original cache should be used when query/store the original image; The transformed cache should be used when query/store transformed image.
...
Added test case `test16ThatTransformerUseDifferentCacheForOriginalAndTransformedImage`
2021-03-09 15:42:09 +08:00
DreamPiggy
d277514cbe
Added `test28ProgressiveDownloadShouldUseSameCoder`
2021-03-04 21:09:22 +08:00
kinarobin
e52686b452
change to IOAnimatedCoder
2021-01-02 21:27:05 +08:00
kinarobin
872b59e32a
Merge branch 'fix-ImageIO-encode/decode-crash' of https://github.com/kinarobin/SDWebImage into fix-ImageIO-encode/decode-crash
2021-01-02 18:12:30 +08:00
kinarobin
8ab5eb29cd
add test case
2021-01-02 18:11:57 +08:00
DreamPiggy
d8961a3e32
Remove the custom NSURLErrorCancelled case when URLSession task been cancelled
2020-12-25 14:32:38 +08:00
DreamPiggy
d92c6cd945
Update the test case to check the return error domain and code
2020-12-24 14:52:36 +08:00
DreamPiggy
7313599a6c
Added test case `test27DownloadShouldCallbackWhenURLSessionRunning`
2020-12-24 14:35:32 +08:00
DreamPiggy
775f6e0578
Update test case test35AnimatedImagePlaybackModeReversedBounce
2020-11-25 16:34:53 +08:00
DreamPiggy
99c59ac52b
Update test case to make it more solid
2020-11-22 12:57:32 +08:00
DreamPiggy
6e34315e6c
Bumped the min deployment target version to iOS 9, macOS 10.11. Bumped the min Xcode version to Xcode 11
...
This follows Apple's App Store submit rule, and user request from the dependency
2020-11-22 11:05:40 +08:00
DreamPiggy
f65ab801d0
Merge branch 'master' of https://github.com/SDWebImage/SDWebImage into gif
2020-11-20 18:50:14 +08:00
DreamPiggy
6453c6a2a2
Fix the test case to use a longer timeout
2020-11-20 18:49:20 +08:00
DreamPiggy
9b48425a77
Modify the test case `test17ThatMinimumProgressIntervalWorks` to make it more robust on CI environment
2020-11-20 18:25:32 +08:00
DreamPiggy
7a61a3339e
Fix the random test case failure because when running next test case, previous test case's animation does not stop
2020-11-20 18:07:27 +08:00
Insomnia
6ecc8c5541
mod: animated test 33
2020-11-20 17:04:14 +08:00
Insomnia
c69e80286b
Merge branch 'master' into gif_bk
2020-11-20 16:02:18 +08:00
Insomnia
d9409e6cd8
mod: 1. change playback mode getter 2. fix playback mode test typo
2020-11-20 15:44:27 +08:00
DreamPiggy
9365dad9b0
Update the built-in loaders for the new protocol methods
2020-11-19 16:22:44 +08:00
Insomnia
35628a2a3b
add: playback mode test
2020-11-03 11:37:27 +08:00
Zhouqi Mo
4e73d478a9
Add animationImages support when using SDAnimatedImageView
2020-10-30 15:36:56 +08:00
libin14
ddbeaa1cdc
fix disk image fetch bug
2020-10-21 10:52:52 +08:00
Eric Silverberg
85d1908025
Fix race condition when using transitions that are canceled and then switched to a new transition or load operation
2020-10-14 14:02:06 -04:00
Kinarobin
7c70e574c1
Merge branch 'master' into fix-memory-cache
2020-10-12 19:52:23 +08:00
libin14
d66597a41f
fix store cache in memory bug
2020-10-12 19:46:24 +08:00
seven332
2a28157787
Add test case for coder priority in SDAnimatedImage
2020-10-11 01:50:36 +08:00
DreamPiggy
718ce14753
Update the test case about this stopAnimating behavior changes
2020-09-28 11:34:48 +08:00
DreamPiggy
c12781b843
Added the test case to ensure the scale detect function works
2020-09-04 16:36:56 +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
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
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
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
5ed134fff6
Update the test case about default cache directory
2020-08-10 16:27:31 +08:00
kinarobin
088b356a1f
fix race condition when use transition
2020-07-16 18:02:47 +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
Philip Dukhov
30053c2ac3
animated image seek frame test added
2020-06-11 12:35:36 +07:00
liulichao
e7386083f7
Test cases (test28AnimatedImageAutoPlayAnimatedImage) changes
2020-05-09 17:53:16 +08:00
liulichao
bfc827c804
FIX Fixed AutoPlayAnimatedImage test case
2020-05-09 12:21:10 +08:00
刘立超
992f231f15
Add a test case for autoPlayAnimatedImage
2020-05-08 23:43:41 +08:00
DreamPiggy
7a430b23b9
Merge branch '5.7.x' of https://github.com/SDWebImage/SDWebImage
...
# Conflicts:
# SDWebImage.xcodeproj/project.pbxproj
2020-05-06 21:51:03 +08:00
DreamPiggy
974c3ff4ad
Update the test case to ensure thi silly problem will not occur again :)
2020-04-30 18:54:12 +08:00
DreamPiggy
3d1abaee82
Add the test case `test15ThatOriginalQueryCacheTypeWork` about original cache key and transformer
2020-04-29 22:11:28 +08:00
DreamPiggy
e85beab792
Merge pull request #2990 from dreampiggy/feature_convenient_header
...
Add the convenient request/response modifier, which provide HTTP header directly
2020-04-27 15:48:40 +08:00
DreamPiggy
cc3f03dfa4
Add the test case about conveniences modifier, rename the category name
2020-04-27 12:10:56 +08:00
DreamPiggy
c4aaa8c63c
Merge pull request #2986 from dreampiggy/feature_pass_set_operation_key
...
Feature pass the set operation key into context option from upstream. Fix the potential retain cycle if user use custom manager
2020-04-26 13:45:04 +08:00
DreamPiggy
9a75441634
Fix test case compile issue on macOS
2020-04-21 17:49:40 +08:00
DreamPiggy
d76fb76e0d
Added the test cases`test19ThatEmbedThumbnailHEICWorks` to ensure the embed thumbnail works
2020-04-21 13:50:58 +08:00
DreamPiggy
e8a357e504
Added test case `testUIViewOperationKeyContextWorks` to ensure this behavior
2020-04-17 16:03:36 +08:00
DreamPiggy
e5adec920b
Fix the test case about encoding check, the expect expression syntax is wrong
2020-04-13 11:22:30 +08:00
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
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
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
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
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
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
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
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
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
7f540a6296
Fix the test cases for cacheType arg
2020-04-01 17:16:33 +08:00
DreamPiggy
f415e51508
Update the test case, because previouslly we have no test case about the storeImage behavior when imageData is nil
2020-03-02 14:52:50 +08:00
DreamPiggy
cc8e80ff84
Try to fix the test case `test11ThatCancelAllDownloadWorks` to make it stable
2020-03-02 14:52:50 +08:00
DreamPiggy
d88b7d81db
Update the test case with Case 3: UIAnimatedImage without sd_imageFormat should use GIF not APNG
2020-03-02 14:52:50 +08:00
DreamPiggy
12bdd57f31
Added the test case `test42StoreCacheWithImageAndFormatWithoutImageData` to ensure this behavior
2020-03-02 14:52:50 +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
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
eeec6de698
Update the PDF demo and test cases
2020-01-30 15:29:57 +08:00
DreamPiggy
cde0e48a6d
Add one progressive animation test case to avoid this regression bug in the future
2020-01-18 16:46:00 +08:00
DreamPiggy
b8b7438ce9
Fix the wrong behavior of current sd_blurredImageWithRadius, which calculate the wrong box size for consolve
2020-01-15 21:35:15 +08:00
DreamPiggy
7a8407d0be
Fix the test case again because of the behavior changes for aspect ratio rect limit
2020-01-13 22:17:19 +08:00
DreamPiggy
72250f2182
Fix the test case again
2020-01-10 22:33:05 +08:00
DreamPiggy
cd1ae56f5f
Add one test case to ensure the `SDWebImageScaleDownLargeImages` is translated to thumbnail decoding
2020-01-10 19:28:39 +08:00
DreamPiggy
77283f6116
Update the test case, fix the behavior of thumbnail pixel size when aspect ratio is YES.
2020-01-10 18:23:41 +08:00
DreamPiggy
fa124b4d11
Enable the force decode test case for macOS as well
2020-01-10 11:55:01 +08:00
DreamPiggy
86e3a164dc
Fix the test case of blur radius calculation. CG and CI now match in visual
2020-01-03 14:45:13 +08:00
DreamPiggy
1afadafc78
Update all transformer test cases to support Core Image
2020-01-03 11:58:12 +08:00
DreamPiggy
eda7422c82
Fix the issue of sd_croppedImageWithRect (UIKit) and sd_rotatedImageWithAngle for CIImage
2019-12-30 22:40:06 +08:00
DreamPiggy
a7682d58b4
Add the test case testSDGraphicsImageRenderer, update the documentation
2019-12-21 20:15:59 +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
0b12058427
Fix the test case compile warning of `SDWebImageTestDiskCache`
2019-12-16 12:44:52 +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
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
4c7cbc6aa7
Update the test case to SDAnimatedImageView/Player
2019-11-04 12:34:36 +08:00
DreamPiggy
a4888081ea
Change the "Tests" iOS target name into "Tests iOS", since now we have 3 test target, to help for readability
2019-10-28 13:18:12 +08:00
DreamPiggy
0db2169665
Update tvOS available check on test case
2019-10-27 22:48:43 +08:00
DreamPiggy
77830dd4f2
Add all the Test Case on tvOS platform, using the same code as iOS
2019-10-27 22:32:53 +08:00
DreamPiggy
1442534f6d
Fix the SDDisplayLink issue of default value, add test cases `testSDDisplayLink`
2019-10-27 21:47:09 +08:00
DreamPiggy
5aab84df90
Fix the test case naming and documentation
2019-10-16 17:04:03 +08:00
DreamPiggy
34e736375e
Refactory to seperate the response modifier and data decryptor, one for HTTP response, one for Data decrypt.
2019-10-15 20:16:52 +08:00
DreamPiggy
d6fbaaff04
Add test case `test24ThatDownloadRequestModifierWorks `, including the base64 and zlib testing for both fileURL and webURL
2019-10-15 16:40:59 +08:00
DreamPiggy
e8ee90b85e
Try to fix the test case `test15DownloaderLIFOExecutionOrder`, because the queue dispatch delay, we add the next 8-14 urls just after url 7 start downloading
2019-09-30 12:36:39 +08:00
DreamPiggy
902c619126
Added the test case `test15DownloaderLIFOExecutionOrder` to fix the LIFO order. See #2823
2019-09-26 22:49:31 +08:00
DreamPiggy
164409d30a
Fix the iOS 13 Test case
2019-09-22 17:20:57 +08:00
DreamPiggy
f80a2840c0
Fix the Travis-CI test issue for macOS 10.15
2019-09-22 16:03:45 +08:00
DreamPiggy
1a32f90f9c
Add test. case for HEIC animated imaged decoding && encoding
2019-09-22 15:06:03 +08:00
DreamPiggy
d20b25b72c
Fix the unused code warning on test cases
2019-09-20 19:07:19 +08:00
DreamPiggy
7e83241c37
Fix the macOS SDAnimatedImageRep to match Netscape standard of GIF loop count, which should use 1 when there are no loop count information
2019-09-20 18:59:14 +08:00
DreamPiggy
a7ae1053ec
Fix the test case issue. The loop count test case need another PR to fix
2019-09-20 17:44:38 +08:00
DreamPiggy
113c20ad9e
Add the test case for GIF image which does not have any Loop Count extension metadata
2019-09-20 16:29:26 +08:00
DreamPiggy
fb6819add0
Add test case to ensure the `SDImageIOAnimatedCoder` abstract class can not be used as normal coder
2019-09-20 14:32:35 +08:00
DreamPiggy
70b8fec54a
Fix the compile issue for test cases on macOS
2019-08-30 17:25:10 +08:00
DreamPiggy
1f74aea686
Add the test case for these two new properties
2019-08-27 19:41:27 +08:00
DreamPiggy
3f248552b3
Update the test case for catalyst
2019-08-13 13:22:10 +08:00
DreamPiggy
054c5186b8
Use UIImage.class for conformsToSelector detect, which fix the current Xcode 11 Beta5 's runtime behavior of UIKit for macOS
2019-08-12 20:55:07 +08:00
DreamPiggy
caae8f171f
Fix the test case because of cache key
2019-08-03 18:29:18 +08:00
DreamPiggy
b444652412
Add more tests to ensure the callback been called, even we cancel the operation, impact the view category and prefetcher
2019-08-03 17:24:34 +08:00
DreamPiggy
4e51f1deac
Merge branch 'master' of https://github.com/SDWebImage/SDWebImage into bugfix_user_cancel_guarantee_callback
2019-08-02 17:41:32 +08:00
DreamPiggy
cd2e36f7a5
Add test cases for `matchAnimatedImageClass` options
2019-08-02 16:03:48 +08:00