Repository navigation
A capture is checked against the sizes App Store Connect takes - #20
Merged
Merged
Conversation
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]>
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.
Extracted from #5, whose other two commits are now redundant: the
find_identityfingerprint-dedup fix was independently rediscovered andmerged as 9e0bca1, and the
--lang/--settlework was superseded by7aa028f 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
screencapturewrites pixels, so adisplay 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
main's already-rewrittenscreenshot.sh;sh -npasses.2560x1600 result is accepted.
🤖 Generated with Claude Code