Skip to content

Shrink the Jetpack migration notifications explainer asset (~4.5 MB) - #25963

Open
jkmassel wants to merge 1 commit into
trunkfrom
jkmassel/shrink-migration-explainer-asset
Open

Shrink the Jetpack migration notifications explainer asset (~4.5 MB)#25963
jkmassel wants to merge 1 commit into
trunkfrom
jkmassel/shrink-migration-explainer-asset

Conversation

@jkmassel

@jkmassel jkmassel commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the four wp-migration-notifications-explainer-{ltr,rtl} PDFs with correctly-sized @2x/@3x PNGs.
  • 4.95 MB → 416 KB on disk, with no visible change.

Root Cause

The imagesets were exported from Figma as PDFs that each embed a 1960×1408 raster — they aren't real vector art. The illustration renders at its intrinsic ~204 pt in a center-aligned, .scaleAspectFit stack (MigrationNotificationsCenterViewMigrationCenterView), so the shipped raster is ~10× oversized by area. It was the single largest asset in the project; the next-biggest catalog PDF is 428 KB.

Fix

Rendered each PDF to @2x (408×270) and @3x (612×405) PNGs at the display size and updated both Contents.json. No @1x variant — the minimum deployment target is iOS 17, so there are no @1x devices. The code references the imageset name (UIImage(named: "wp-migration-notifications-explainer-ltr")), which is unchanged.

Test Plan

  • actool compiles the catalog cleanly; both renditions present in the resulting Assets.car.
  • Verified the rendered @3x PNG is pixel-faithful to the source PDF (light + dark).
  • Spot-check the migration notifications screen renders identically in light/dark and LTR/RTL on device.

Notes

This is the low-risk, byte-only step. The screen it feeds is part of the winding-down WordPress→Jetpack migration flow (see #25877, #25879). Removing the screen outright is a separate follow-up — it carries a live side-effect (JetpackNotificationMigrationService.rescheduleLocalNotifications() has no other trigger in the Jetpack app) that would need to move onto the silent-import path, so it should go through the migration-flow owner rather than ride in on an asset resize.

The wp-migration-notifications-explainer-{ltr,rtl} imagesets shipped as
Figma-exported PDFs that each embed a 1960x1408 raster, but the illustration
renders at its intrinsic ~204pt in a center-aligned, aspect-fit stack. Replace
the four oversized PDFs (4.95MB) with @2x/@3x PNGs rendered at the display size
(416KB total) — a ~4.5MB uncompressed reduction with no visible change.
@dangermattic

dangermattic commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator
1 Warning
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@wpmobilebot

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 Number34115
VersionPR #25963
Bundle IDorg.wordpress.alpha
Commit15b0d6d
Installation URL2t1q2qeuqmeoo
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

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 Number34115
VersionPR #25963
Bundle IDcom.jetpack.alpha
Commit15b0d6d
Installation URL0s2m4ta24n8qg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@jkmassel
jkmassel requested a review from crazytonyli September 1, 2026 18:47
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.

3 participants