fix(mobile): 修复 iOS HDR 截图发送失败 - #3905
Merged
Merged
Conversation
Signed-off-by: david <david@xd.com>
Closed
Signed-off-by: david <david@xd.com>
Collaborator
Author
反馈已处理已处理:
变更:
验证:
备注:
|
DavidShenXD
marked this pull request as ready for review
September 7, 2026 03:35
Collaborator
Author
验证更新\n\n已验证:\n- 用户已在 iOS 模拟器上验证手机截图发送流程通过。\n\n状态:\n- PR 已从 Draft 切换为 Ready for review。\n\n备注:\n- iOS HDR / SDR 目标真机回归仍可在后续发布前继续补充。\n |
|
| Filename | Overview |
|---|---|
| dependency-patches/expo-image-manipulator@57.0.14.patch | 将 iOS 图片方向归一化从手工 CGContext 变换改为正常方向直返、其他方向通过系统 renderer 绘制。 |
| package.json | 在根 pnpm 配置中登记 expo-image-manipulator@57.0.14 补丁。 |
| pnpm-lock.yaml | 为 Mobile importer、依赖快照和 patchedDependencies 同步补丁哈希。 |
| dependency-patches/README.md | 记录补丁解决的问题、实现策略、参考来源及后续移除条件。 |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[iOS UIImage] --> B{imageOrientation == .up?}
B -- 是 --> C[复用原 UIImage]
B -- 否 --> D[UIGraphicsImageRenderer 新画布]
D --> E[UIImage.draw 应用方向]
C --> F[Expo 保存与上传流程]
E --> F
Reviews (1): Last reviewed commit: "fix(mobile): 同步 iOS HDR 补丁哈希" | Re-trigger Greptile
Collaborator
Author
反馈已处理已处理:
变更:
验证:
备注:
|
Contributor
|
@DavidShenXD 👋 这个 PR 已经有 3 天没有 rebase 了。 为了避免合入后出现 CI 未曾验证过的新问题,请在本地 rebase 最新的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这次改了什么
摘要
修复 iOS 手机截图在方向归一化时处理 HDR / 10-bit HEIC 失败,导致图片发送报错
ERR_IMAGE_CONTEXT_LOST的问题。补丁参考了 Expo 同类修复路径:正常方向直接复用原图,其他方向使用系统UIGraphicsImageRenderer绘制。变更类型
fix缺陷修复feat新功能refactor/perf重构或性能优化docs/test/chore文档、测试或工程维护范围
expo-image-manipulator@57.0.14的 iOS 原生补丁、patch 登记和 lockfile 更新。UI 变化
不涉及:仅修改 Mobile 依赖的 iOS 原生图片方向归一化实现,没有界面、布局、样式、交互或文案变化。
怎么验证的
自动验证
结果:以上命令全部通过;Desktop、Mobile、maker-core 及要求的 workspace 单测均通过。
手工验证
未执行:当前环境为 Windows,无法编译 iOS Swift;尚未在 iOS 26 HDR / SDR 真机上回归。
未执行的验证
风险
风险分类
影响与回滚
提交前检查
git commit -s,见 DCO)