Skip to content

Floor the display scale when sizing remote images#25697

Open
crazytonyli wants to merge 1 commit into
trunkfrom
task/displayscale-image-size-floor
Open

Floor the display scale when sizing remote images#25697
crazytonyli wants to merge 1 commit into
trunkfrom
task/displayscale-image-size-floor

Conversation

@crazytonyli

Copy link
Copy Markdown
Contributor

Replace UIScreen.main.scale with max(1, traitCollection.displayScale). The view's traitCollection.displayScale can be 0 before its traits resolve, so flooring at 1 (matching AsyncImageKit's ImageSize) avoids zero-size image requests.

@crazytonyli crazytonyli added this to the 27.1 milestone Jun 24, 2026
@crazytonyli crazytonyli requested a review from jkmassel June 24, 2026 10:05
@wpmobilebot

wpmobilebot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number32815
VersionPR #25697
Bundle IDorg.wordpress.alpha
Commit0b7aa3b
Installation URL0es8pk48f0h98
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

wpmobilebot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number32815
VersionPR #25697
Bundle IDcom.jetpack.alpha
Commit0b7aa3b
Installation URL3skp7kn3msbsg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Replace UIScreen.main.scale with max(1, traitCollection.displayScale) in the post and page list cells, the networking image download, and the theme screenshot URL. The view's traitCollection.displayScale can be 0 before its traits resolve, so flooring at 1 (matching AsyncImageKit's ImageSize) avoids zero-size image requests.
@crazytonyli crazytonyli force-pushed the task/displayscale-image-size-floor branch from 04b24b2 to 0b7aa3b Compare June 24, 2026 23:25
@crazytonyli crazytonyli enabled auto-merge June 24, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants