{"id":51354426,"url":"https://github.com/vorojar/iphone-exif-injector","last_synced_at":"2026-07-02T18:34:15.759Z","repository":{"id":364704597,"uuid":"1222331489","full_name":"vorojar/iphone-exif-injector","owner":"vorojar","description":"Inject full iPhone EXIF (Make, Model, lens, ISO, GPS, timestamp) into any photo + swap JPEG quantization tables with real iPhone DQT. macOS right-click service. 一键把图片伪装为 iPhone 拍摄的照片","archived":false,"fork":false,"pushed_at":"2026-04-28T02:05:09.000Z","size":688,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T07:05:08.332Z","etag":null,"topics":["exif","exif-injector","exif-metadata","image-metadata","iphone","iphone-photo","jpeg","macos","metadata","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vorojar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-27T09:03:02.000Z","updated_at":"2026-04-28T02:05:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vorojar/iphone-exif-injector","commit_stats":null,"previous_names":["vorojar/iphone-exif-injector"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vorojar/iphone-exif-injector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorojar%2Fiphone-exif-injector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorojar%2Fiphone-exif-injector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorojar%2Fiphone-exif-injector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorojar%2Fiphone-exif-injector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vorojar","download_url":"https://codeload.github.com/vorojar/iphone-exif-injector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorojar%2Fiphone-exif-injector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35059245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exif","exif-injector","exif-metadata","image-metadata","iphone","iphone-photo","jpeg","macos","metadata","rust"],"created_at":"2026-07-02T18:34:15.230Z","updated_at":"2026-07-02T18:34:15.752Z","avatar_url":"https://github.com/vorojar.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 真实照片生成器\n\n把 AI 生成的图片（或任何\"干净元数据\"的图片）处理成像 iPhone 真实拍摄的照片——绕过小红书/抖音/视频号等平台的 AI 图检测。\n\n**使用方式：在 Finder 中右键任意图片 → 服务 → 处理为 iPhone 照片**。没有拖拽窗口，没有操作界面——所有工作都在右键菜单里完成，右上角系统通知提示结果。\n\n## 它做什么\n\n**只做\"加信息\"，不动你的像素**——保留原图尺寸、保留原图色彩，绝不裁切/缩放/加噪声/偏色温。\n出来的照片在视觉上和你的输入**完全一样**，只是文件元数据\"伪装成 iPhone 拍的\"。\n\n- **JPEG 重编码**：用 quality=95 重编码（即使输入已经是 JPEG），让所有输出走同一条编码路径\n- **量化表替换**：把 libjpeg 的 DQT 替换为真实 iPhone 12 Pro 的 DQT\n- **EXIF 注入**：完整 iPhone 相机参数 47 项 + 可选 GPS 10 项\n  - Make / Model / Software / LensMake / LensModel\n  - 光圈 / 快门 / ISO / 焦距 / 35mm 等效\n  - DateTimeOriginal（随机近 10 天内）+ 亚秒 + 时区 `+08:00`\n  - ColorSpace=sRGB / Orientation=1 / ExposureMode / WhiteBalance\n  - LensInfo / ApertureValue / ShutterSpeedValue（APEX）\n  - ExifImageWidth/Height **跟随原图真实尺寸**（不会和实际像素对不上）\n- **文件时间**：同步把文件的 mtime 改成\"拍摄时间\"（Finder 显示）\n\n\u003e ⚠️ 这是\"温和模式\"权衡：不动像素意味着对纯像素层的 AI 指纹检测保护更弱。\n\u003e 如果平台检测主要看 EXIF + JPEG 编码特征，这套方案足够；\n\u003e 如果平台还会跑 StyleGAN/Diffusion 的频域指纹模型，可能仍会触发。\n\n## 支持的机型预设\n\n| ID | 机型 | 主摄焦距 | 光圈 |\n|---|---|---|---|\n| `iphone15pro` | iPhone 15 Pro | 6.765mm (24mm 等效) | f/1.78 |\n| `iphone15` | iPhone 15 | 5.96mm (26mm) | f/1.6 |\n| `iphone14pro` | iPhone 14 Pro | 6.86mm (24mm) | f/1.78 |\n| `iphone14` | iPhone 14 | 5.7mm (26mm) | f/1.5 |\n| `iphone13` | iPhone 13 | 5.1mm (26mm) | f/1.6 |\n\n## 安装 \u0026 运行\n\n### 方式一：开发模式\n\n```bash\ncargo run --release\n```\n\n### 方式二：打包成 .app（推荐）\n\n```bash\n./bundle.sh\n```\n\n把 `target/真实照片生成器.app` 拖到 `/Applications/` —— **双击运行一次**，App 会自动向 LaunchServices 注册并刷新 pbs 缓存，之后右键菜单里就有\"处理为 iPhone 照片\"。\n\n两种用法：\n\n1. **右键菜单**（推荐）：在 Finder 右键任意图片 → **服务 →** **处理为 iPhone 照片** → 右上角系统通知提示完成，输出保存在原目录\n2. **GUI 窗口**（批处理、调参）：双击 `/Applications/真实照片生成器.app`，拖图、选机型、开关 GPS / 噪声\n\n### 方式三：做成 .dmg 分发\n\n```bash\n./bundle.sh \u0026\u0026 ./dmg.sh\n```\n\n## 如果右键菜单没出现\n\n优先级从易到难：\n\n- 双击一次 `/Applications/真实照片生成器.app`（触发自注册）\n- 跑 `./install.sh` 强制刷新\n- 打开 **系统设置 → 键盘 → 键盘快捷键 → 服务 → 文件和文件夹**，勾选 **处理为 iPhone 照片**（macOS 有时会默认关闭新注册的服务）\n- 在同一页给这个服务绑一个全局快捷键（比如 ⌘⇧P），选中图片直接按快捷键触发，**比右键菜单还快**\n- 重新登录一次系统让 Services 缓存完全生效\n\n### 命令行用法（无 GUI）\n\n```bash\ncargo run --release --example cli -- /path/to/image.png iphone15pro\n```\n\n## 技术栈\n\n- **GUI**：wry (WebView) + tao（窗口）—— 二进制 ~8MB，无需 Node/Electron\n- **图像处理**：`image` crate\n- **EXIF 写入**：`little_exif`（纯 Rust）\n\n## 注意\n\n- 只做元数据伪装+轻度像素扰动，**不能保证**绕过所有 AI 检测算法\n- 平台算法在持续升级，视觉层的 AI 指纹检测可能仍会触发\n- 自用工具，请合规使用\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorojar%2Fiphone-exif-injector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvorojar%2Fiphone-exif-injector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorojar%2Fiphone-exif-injector/lists"}