Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from SDWebImage:master #103

Open
wants to merge 548 commits into
base: master
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Mar 8, 2022

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

马遥 and others added 28 commits July 28, 2023 14:56
…ows something that add new handlers during checkDone
Fix redundant requests for the same url during decoding time
Test RGB888/RGB16/ARGB8888/RGB16/RGBF works on CGImageCreateScaled, because it's Foundation of coder plugin for thumbnail processing
Fix the CGImageCreateScaled to support 16/32 bit depth CGImage (RGB161616) and always preserve pixel format info
…s state management

Key idea:
1. Image Loading pipeline is based on `operation key`, when start/cancel it always need operation key
2. Stateful view has multiple operation key for different image property, we can use KeyPath as the hint to generate operation key
3. To make exists API compatible, we do not change much, however, in 6.0 we may do refactory and store all the loadState/operation/result into the single object, instead of 3
Add better support for stateful view (UIButton) for image URL/progres s state management
Add extra check for empty data during URLSession data callback
…ptions

Added `SDWebImageAvoidAutoCancelImage` to avoid cancel loading image requests for the same operation key
The scale using traitCollection.displayScale
This only change source code
(Part 1) Support to build for visionOS (no package manager support)
update CHANGELOG
We need the `kSDCGImageSourceSkipMetadata`, or the EXIF orientation translated by JFIF stills contains the non-Up side, and apply twice (by Apple's ImageIO and us)
Fix the JFIF image orientation bug (which does not use EXIF but JFIF metadata)
Move the scripts from xcproj into the actual Scripts folder
Which fix the issue on M1 Mac for x86_64 cross-build
Added the visionOS support for "Build XCFramework" script target
renewedvision-kh and others added 8 commits January 3, 2025 13:37
Add autoreleasepool to DisplayLinkCallback to release objects
…ame URL in prefetcher list) breaks the `queryCacheType` option sematic

We should only do optimization on `async` disk cache query case
Update the test case url, that wikipedia url seems strange on iOS unit test
…mization

Fix the issue that previous optimization for special case (multiple same URL in prefetcher list) breaks the `queryCacheType` option sematic
update CHANGELOG
* Support HDR

* Support HDR

* When using SDWebImageProgressiveLoad and setting it to SDWebImageContextImageDecodeToHDR, it will be decoded to HDR only when loading is complete.

* When SDImageIOAnimatedCoder turns on incremental, it does not need to be decoded to HDR when it is not completed

* Sample image to remove sensitive information

* 1、use remote resources for HDR testing
2、add simulator log for HDR

* Support HDR encode

* Support HDR encode

* imageRef release error

* HDR Decoded is not required for decoding, otherwise the type will be lost

* HDR encode format

* hdrImageRef  not released correctly

* HDR image must be lazy decode

* HDR image must be lazy decode

* JEPG HDR image must be lazy decode, otherwise it will crash

* HDR, encoding properties add kCGImageDestinationEncodeToISOGainmap, compatible with SDR displays while preserving HDR

* 支持 decode to HDR

* HDR encoding is not currently supported

* add UIImage.sd_isHighDynamicRange, use check UIImage is HDR

* refactor: Do not hack on HEICS and distinguish static/aniamted image encoding UTI

* refactor: Move cross-platform screen info into SDDeviceHelper

* change: Do not disable force decode when turn on decodeToHDR

Need actually check the HDR info of CGImage, or better, we can pre-decode to drop lazy HDR image

* change: use UIImage.imageRendererFormat when force decode using graphics renderer

This can inherit the possible info like dynamic range

* fix: When decode HDR image to SDR, need specify the decode request

Tested on macOS 14.5 and iOS 18.0 behavior

* test: Added unit test for HDR decoding

* demo: Update the macOS demo to show the HDR image

* test: workaround the SDR decode on Simulator environment

* change: The `sd_isHighDynamicRange` should check CGImage as fallback as well

* test: temp disable a unused test case

---------

Co-authored-by: DreamPiggy <lizhuoli1126@126.com>
…lbackqueue

Deprecate dispatch_main_async_safe, introduce two more policy `.safeAsyncMainThread` (for UIKit diffable data source) and `.safeAsyncMainQueue`  (for most common cases)
…t need main queue check at all

This is the best practice for UI related code
…ImageMetadata_readwrite

Allows user to directly customize preserveImageMetadata for our built-in transformers
Change the default callback queue policy to SafeAsyncMainThread, don't need main queue check at all
…_return

fix: sd_colorAtPoint should early return when pixel format is not supported
This just forward the options, no extra logic
this need iOS 18 and macOS 15 device (not simulator)
Supports HDR encoding on Apple ImageIO coder
update CHANGELOG
ci: Fix the GitHub Action cd release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.