Skip to content

feat image-capture-compression still working on it(#293) - #441

Merged
johdanike merged 3 commits into
SwiftChainn:mainfrom
spiffamani:enhance/image-capture-compression
Aug 5, 2026
Merged

feat image-capture-compression still working on it(#293)#441
johdanike merged 3 commits into
SwiftChainn:mainfrom
spiffamani:enhance/image-capture-compression

Conversation

@spiffamani

@spiffamani spiffamani commented Jul 30, 2026

Copy link
Copy Markdown

closes #293

@johdanike

Copy link
Copy Markdown
Contributor

Resolve your conflicts

@johdanike

Copy link
Copy Markdown
Contributor

@spiffamani Please resolve the existing conflict in the tsconfig file

- Harden imageCompressionService with escalating quality (0.8->0.2) and dimension (1280px->320px) fallback so proof uploads strictly stay under 500KB, throwing instead of silently uploading an oversized file.
- Restore lib/api.ts and services/uploadService.ts from upstream/main (required by ImageCapture but missing on this branch); fix Windows encoding artifacts (BOM, mangled em-dashes) introduced during that pull.
- Add unit tests for imageCompressionService, useImageCompressor, and ImageCapture (16 tests, Component -> Hook -> Service coverage).
- Install browser-image-compression dependency.

Closes SwiftChainn#293
@drips-wave

drips-wave Bot commented Aug 5, 2026

Copy link
Copy Markdown

@spiffamani Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@johdanike
johdanike merged commit 345c80f into SwiftChainn:main Aug 5, 2026
0 of 2 checks passed
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.

Enhancement: Client-Side Image Compression for Proofs

2 participants