Skip to content

A capture is checked against the sizes App Store Connect takes - #20

Merged
anderix merged 1 commit into
mainfrom
macos-retina-shot-size
Sep 27, 2026
Merged

anderix merged 1 commit into
mainfrom
macos-retina-shot-size

Conversation

@anderix

@anderix anderix commented Sep 27, 2026

Copy link
Copy Markdown
Member

Extracted from #5, whose other two commits are now redundant: the
find_identity fingerprint-dedup fix was independently rediscovered and
merged as 9e0bca1, and the --lang/--settle work was superseded by
7aa028f pulling the current shared screenshot template, which already
has both. This is the one fix from that branch still needed.

The window is sized in points and screencapture writes pixels, so a
display with a backing scale of 2 hands back twice what was asked for.
Both are right: Connect takes 1280x800, 1440x900, 2560x1600 and
2880x1800, and the larger pair is the smaller pair doubled. Comparing
the file against the number asked for would call a correct Retina
capture wrong and refuse it. Not reached on the Mac this was measured
on, whose display is 1x — it is the refusal a Retina machine meets on
its first run.

Test plan

  • Cherry-picked cleanly onto current main's already-rewritten
    screenshot.sh; sh -n passes.
  • Run a real capture on a Retina Mac and confirm a 2880x1800 or
    2560x1600 result is accepted.

🤖 Generated with Claude Code

The window is sized in points and `screencapture` writes pixels, so a display
with a backing scale of 2 hands back twice what was asked for. Both are right:
Connect takes 1280x800, 1440x900, 2560x1600 and 2880x1800, and the larger pair
is the smaller pair doubled. Comparing the file against the number asked for
would call a correct Retina capture wrong and refuse it.

Not reached on this Mac, whose display is 1x and whose captures come back at
the 1440x900 the window was sized to. It is the refusal a Retina machine would
have met on its first run, and the message named the sizes without saying what
they are, which is the other half of why it would have been puzzling.

The second condition keeps what the first one gave up: an accepted size that is
not this window at either scale is some other window, and still refuses.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@anderix
anderix merged commit b0a7727 into main Sep 27, 2026
6 checks passed
@anderix
anderix deleted the macos-retina-shot-size branch September 27, 2026 03:27
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.

1 participant