Skip to content

Screenshots: bring iOS 27's 16-bit P3 screenshots down to 8 bits - #284

Merged
renrenmimi merged 1 commit into
mainfrom
ios-native/screenshot-16bit
Oct 2, 2026
Merged

renrenmimi merged 1 commit into
mainfrom
ios-native/screenshot-16bit

Conversation

@renrenmimi

Copy link
Copy Markdown
Owner

scripts/device-screenshot.sh stopped at the pixel check on the phone tonight. The phone is on iOS 27, where a device screenshot is 16-bit Display P3. sips --setProperty bitsPerSample 8 writes nothing for that file and still exits 0, so sample-pixels.py was handed the 16-bit file and raised.

The script now matches the image to its own colour profile (sips --matchTo "…/Display P3.icc"). sips writes the result at 8 bits, with the colours unchanged. It then reads the depth back instead of trusting the exit code.

Checked on tonight's 16-bit screenshot:

  • the file comes out 8-bit, still Display P3;
  • sample-pixels.py reads it, and its numbers match a by-hand conversion;
  • a file that is already 8-bit goes through untouched;
  • bash -n passes.

🤖 Generated with Claude Code

On iOS 27 a device screenshot is 16-bit Display P3, and
`sips --setProperty bitsPerSample 8` writes nothing for it while still
exiting 0, so the pixel reader was handed the 16-bit file and stopped.
Matching the image to its own colour profile writes it at 8 bits with
its colours unchanged; the depth is now read back instead of trusting
sips's exit code.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pet-note Ready Ready Preview Oct 2, 2026 6:04am UTC

Copilot AI balanced review requested due to automatic review settings October 2, 2026 06:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@renrenmimi
renrenmimi merged commit a78c7cf into main Oct 2, 2026
7 checks passed
renrenmimi added a commit that referenced this pull request Oct 2, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
renrenmimi added a commit that referenced this pull request Oct 2, 2026
STATUS: the 072261d install, Apple Maps on the phone, #278 to #284

This branch was successfully deployed

1 active deployment
Preview — 34bc037e Deployed Oct 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants