Skip to content

feat(compress): enhance target-size compression presets, 300 DPI scaling, and bump to v1.2.3 - #11

Merged
gzz727007 merged 4 commits into
mainfrom
feat/compress-target-quality-reassurance
Sep 25, 2026
Merged

gzz727007 merged 4 commits into
mainfrom
feat/compress-target-quality-reassurance

Conversation

@gzz727007

Copy link
Copy Markdown
Member

🦭 Pull Request Description

Summary of Changes

This PR introduces critical improvements to the target-size compression engine, aligns presets with global portal limits, and resolves a semantic display bug in post-task workflow relays:

  1. Smart Dynamic 300 DPI Scaling & Reassurance Feedback:

    • For short documents ($\le 3$ pages, e.g. single-page certificates, passports, diplomas), dynamically unlocks up to 300 DPI (scale = 4.17) print-grade clarity.
    • For multi-page documents ($> 3$ pages), dynamically optimizes up to a safe 200 DPI (scale = 2.50) ceiling to strictly protect mobile browsers from canvas memory exhaustion (OOM).
    • Added reassuring visual feedback badge when output naturally fits below target size while reaching maximum sharpness.
  2. Real-World Portal Upload Presets:

    • Realigned quick preset buttons to match official global submission caps:
      • 1 MB: ID Cards & Strict Portals (e.g. India e-Visa, strict tax forms)
      • 2 MB: Visa (CEAC / VFS) & College Portals (Common App)
      • 5 MB: Canada IRCC & Job Applications (Workday ATS)
      • 10 MB: USCIS Portals, Tenders & Thesis
      • 20 MB: Universal Email Safe Limit (< 20 MB)
  3. Workflow Strategy Semantic Relay Fix:

    • Resolved a bug in workflowStrategy.js where the post-compression NextActionBanner incorrectly displayed a contract signing description (next_action_desc_protect_signed).
    • Added dedicated, context-accurate keys and translations across all 6 locales (zh, en, de, es, fr, ja) for compress, organize, split, and protect tools.
  4. Version Bump:

    • Bumped version from v1.2.2 to v1.2.3.

Type of Change

  • 🐛 Bug fix (non-breaking change fixing an issue)
  • ✨ New feature (non-breaking change adding functionality)
  • ⚡ Performance optimization (rendering, memory, or bundle size)
  • 🎨 UI / UX refinement
  • 🌍 Internationalization / Translations (new or updated language)
  • 📝 Documentation update (README, Guides, Comments)
  • 🧪 Test suite enhancement

🛡️ Privacy & Quality Checklist

  • 100% Client-Side Invariant: All code runs strictly in the browser RAM / WebAssembly. No user documents or telemetry data are ever sent over the network.
  • Automated Tests: I have verified that all existing tests pass (npm test).
  • New Tests Added: I have added unit or E2E tests covering new algorithmic behavior (if applicable).
  • Responsive & Cross-Browser: Verified that UI works smoothly across desktop and mobile screens.
  • Self-Review: I have performed a self-review of my own code and removed unnecessary console.log statements.

Related Issues

Closes #

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
pdfseal 7394f22 Commit Preview URL

Branch Preview URL
Sep 25 2026, 09:17 AM

@gzz727007
gzz727007 merged commit 131902e into main Sep 25, 2026
4 checks passed
@gzz727007
gzz727007 deleted the feat/compress-target-quality-reassurance branch September 25, 2026 09:20
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