Optimize oversized screenshots before mobile capture #496

Merged
timmy merged 1 commits from timmy/495-optimize-oversized-screenshots into main 2026-08-10 15:58:36 +00:00
Owner

Closes #495

What changed

  • downscale and re-encode oversized PNG/JPEG/WebP screenshots on-device before preview
  • reuse optimized binary bytes for durable issue/comment delivery
  • show mobile optimization progress and cancel stale work safely
  • retain the existing 2 MiB server-side boundary

Verification

  • pytest -q tests/test_issue_attachment_ui.py — 19 passed
  • pytest -q tests/ — 992 passed
  • rendered Chromium at 390×844: 9,602,862-byte PNG optimized to 1,934,850 bytes; preview visible and 44px trigger
Closes #495 ## What changed - downscale and re-encode oversized PNG/JPEG/WebP screenshots on-device before preview - reuse optimized binary bytes for durable issue/comment delivery - show mobile optimization progress and cancel stale work safely - retain the existing 2 MiB server-side boundary ## Verification - `pytest -q tests/test_issue_attachment_ui.py` — 19 passed - `pytest -q tests/` — 992 passed - rendered Chromium at 390×844: 9,602,862-byte PNG optimized to 1,934,850 bytes; preview visible and 44px trigger
timmy added 1 commit 2026-08-10 15:56:53 +00:00
feat: optimize oversized mobile screenshots (Closes #495)
All checks were successful
CI / lint (pull_request) Successful in 1m1s
CI / build-release (pull_request) Successful in 5s
CI / release-candidate (pull_request) Has been skipped
95a14c6de5
timmy merged commit 814c5726ec into main 2026-08-10 15:58:36 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#496
No description provided.