Commit Graph

3185 Commits

Author SHA1 Message Date
DreamPiggy ecac56b726 Use the new solution, store the original decode options, when multiple loading pipeline share the same URL callback, check it and re-decode if needed 2022-06-26 00:29:24 +08:00
DreamPiggy 911328c1b4 Fix the case when previous pipeline use thumbnail transformer use together, second pipeline use the full size loading 2022-06-23 19:37:47 +08:00
DreamPiggy 2c9290f109 Added sd_isThumbnail to mark metadata, avoid the case when full size image request re-use the image from thumbnail decoding for the same URL
I think this is a temp workaround
2022-06-23 19:19:23 +08:00
DreamPiggy e7e9268a7e Fix the case that query full size key with thumbnail, cause the write back of thumnail to memory cache with wrong key 2022-06-23 17:54:27 +08:00
DreamPiggy 613a2bf988 Opt the thumbnail cache behavior, now it prefers to store/query original data from disk, thumbnail image from memory
Separate the thumbnail from transformer, they are for different use case
2022-06-23 17:12:56 +08:00
DreamPiggy 3746c5d4c6 Merge branch 'master' of https://github.com/SDWebImage/SDWebImage 2022-06-20 17:33:00 +08:00
DreamPiggy 9362505aeb
Merge pull request #3336 from Insofan/feat/store_data
feat: store image data
2022-06-20 17:18:42 +08:00
DreamPiggy 8743cdd633
Merge pull request #3355 from dreampiggy/feature_support_uiimage_preparefordisplay
Support using iOS 15 UIImage new API imageByPreparingForDisplay for faster force decoding
2022-06-20 17:17:10 +08:00
DreamPiggy b729cc14f6 Bumped version to 5.12.6
update CHANGELOG
2022-06-12 18:28:19 +08:00
DreamPiggy 9b9fc6fc9b Support using iOS 15 UIImage new API imageByPreparingForDisplay for faster force decoding
This API seems support both async/sync version, SD use sync version here because we already call them on global queue
The API mark available on watchOS, but header does not pass that __has_include, a little strange
2022-06-12 18:16:04 +08:00
DreamPiggy eeb25d6e9c
Merge pull request #3354 from dreampiggy/bugfix_thumbnail_calculate
Fix the thumbnail pixel size calculation when preserveAspectRatio is true
2022-06-12 17:11:14 +08:00
DreamPiggy a66972bdc8
Update SDImageCache.m
Little logic check for nil value
2022-06-12 17:10:23 +08:00
DreamPiggy 754de4d7c8
Update SDImageCache.m
Remove extra toDisk param
2022-06-12 17:04:52 +08:00
DreamPiggy 2fc131c44b
Update SDImageCache.h
Remove extra toDisk param
2022-06-12 17:03:04 +08:00
DreamPiggy 3b0b232616 Added test case test22ThatThumbnailPreserveAspectRatio 2022-06-12 16:44:21 +08:00
DreamPiggy f90373ce14 Fix the thumbnail pixel size calculation when preserveAspectRatio is true 2022-06-12 16:32:33 +08:00
DreamPiggy 91c9966d77
Merge pull request #3353 from amonshiz/amonshiz/fix-3352
Fix #3352 Include necessary CoreImage import
2022-06-08 23:08:20 +08:00
Andrew Monshizadeh c231320913 Include necessary CoreImage import 2022-06-07 14:33:18 -04:00
DreamPiggy 362ba2d43f
Merge pull request #3349 from turrisxyz/Pinned-Dependencies-GitHub
chore: Set permissions for GitHub actions
2022-06-01 14:46:44 +08:00
naveen 24d4cda885 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-01 00:29:19 +00:00
Kinarobin fda0a57de9
Merge pull request #3346 from timonus/faster-file-url
Small performance improvement to generating file URLs in SDDiskCache -setData:forKey:
2022-05-17 14:13:43 +08:00
Tim Johnsen 484de40e3b Small performance improvement to generating file URLs in SDDiskCache -setData:forKey:. 2022-05-12 15:42:17 -07:00
DreamPiggy d01eb3f8ac
Merge pull request #3337 from GetToSet/ethanwong/nsscreen-thread
Fix a crash of accessing -[NSScreen backingScaleFactor] from background thread.
2022-04-02 17:48:17 +08:00
Ethan Wong 30c9563511
Fix crash of accessing mainScreen from background thread on 10.11. 2022-04-02 15:12:57 +08:00
Inso 7c66265ee8 refactor: refactor store data to memory cache logic 2022-03-30 15:24:32 +08:00
Inso 6a2eaf707e feat: store image data 2022-03-28 12:41:22 +08:00
DreamPiggy 2e63d0061d Bumped version to 5.12.5
update CHANGELOG
2022-03-16 15:58:50 +08:00
DreamPiggy 4974524a47
Merge pull request #3334 from dreampiggy/bugfix_force_decode_use_image_renderer_and_argb8888
Workaround iOS 15+ force decode again using Image Renderer(preferred) and RGB888
2022-03-16 15:55:31 +08:00
DreamPiggy 874b674cb6 Unify the colorspace on macOS/watchOS choosen for draw to use sRGB firstly
Remove the unused OS version check
2022-03-16 15:06:55 +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 c0cc245632 Update AppKit SDGraphics convenient API to use main screen colorspace
Update macOS demo URL as well
2022-03-15 22:38:48 +08:00
DreamPiggy fce270631f Use RGBX8888 for non-alpha image force decoding, which workaround iOS 15+ issue 2022-03-15 22:22:08 +08:00
DreamPiggy 51d1b50ef4 Fix the false decode implementation using the ImageRenderer instead of directly create CGContext 2022-03-15 17:54:44 +08:00
lizhuoli 0228390699 Bumped version to 5.12.4
update CHANGELOG
2022-03-08 15:26:41 +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 1b0fdd8cb6 Fix the iOS 15+ draw image blank because that CoreGraphics may not transcode on BGRX8888 pixel format context 2022-03-03 20:49:57 +08:00
lizhuoli 4589048fdd Fix the some transform test case does not check the color hex 2022-03-03 19:43:59 +08:00
DreamPiggy 020481d5c8
Merge pull request #3327 from soondl/fix/imageView_blink_diskDataSync
Fix imageView blinks with option 'SDImageCacheQueryDiskDataSync'
2022-03-03 18:27:06 +08:00
soondl 4302777c6f Add test case `testUIImageViewSetImageWithURLDiskSync` 2022-02-20 19:01:12 +09:00
soondl 8445f2b1a7 Fix imageView blinks with option 'SDImageCacheQueryDiskDataSync' 2022-02-20 16:08:40 +09:00
lizhuoli 2c53f531f1 Bumped version to 5.12.3
update CHANGELOG
2022-01-27 21:46:56 +08:00
DreamPiggy 81ea1c9a9c
Merge pull request #3321 from ty0x2333/fix_scale_down_image
Fix #3320 `decodedAndScaledDownImageWithImage` does not render the image completely
2022-01-27 21:34:48 +08:00
ty0x2333 33ff352d4e Add test case: test07ThatDecodeAndScaleDownAlwaysCompleteRendering 2022-01-26 15:46:21 +08:00
ty0x2333 8ce13403bc Fix the bug that `decodedAndScaledDownImageWithImage` does not render the image completely due to the loss of precision. 2022-01-26 07:12:35 +08:00
DreamPiggy 0cd9a6485a
Merge pull request #3318 from zakishaheen/patch-1
update URL for SDWebImageSVGKitPlugin in readme
2022-01-19 15:01:01 +08:00
Zaki aa99c37799
update URL for SDWebImageSVGKitPlugin 2022-01-18 16:53:30 -08:00
lizhuoli 0fff0d7505 GravatarBumped version to 5.12.2
update CHANGELOG
2021-12-31 17:21:57 +08:00