android: compress images before media upload
This commit is contained in:
@@ -639,3 +639,11 @@
|
||||
- Added Android support for `GET /api/v1/chats/saved`.
|
||||
- Wired chats overflow `Saved` action to real backend request (instead of local title heuristic).
|
||||
- Saved chat is now upserted into local Room cache and opened via normal navigation flow.
|
||||
|
||||
### Step 100 - Android image compression before upload
|
||||
- Added pre-upload image compression in Android media pipeline (`NetworkMediaRepository`).
|
||||
- For non-GIF images:
|
||||
- decode + resize with max side `1920`,
|
||||
- re-encode as `image/jpeg` with quality `82`,
|
||||
- keep original bytes if compression does not reduce payload size.
|
||||
- Upload request and attachment metadata now use actual prepared payload (`fileName`, `fileType`, `fileSize`), matching web behavior.
|
||||
|
||||
Reference in New Issue
Block a user